How to a='10101111' convert array b=[1,0,1,0,1,1,1,1]
Mostrar comentarios más antiguos
a is char type
Respuestas (2)
Bruno Luong
el 18 de Dic. de 2020
>> a='10101111'
a =
'10101111'
>> a-'0'
ans =
1 0 1 0 1 1 1 1
1 comentario
dmfwlansejr
el 18 de Dic. de 2020
Subhadeep Koley
el 18 de Dic. de 2020
Editada: Subhadeep Koley
el 18 de Dic. de 2020
charArray = '10101111';
newCharArray = double((charArray == '1'));
Categorías
Más información sobre Powertrain Blockset en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!