Error while using dec2bin() : too many input arguments
Mostrar comentarios más antiguos
when i run this code:
M = 'Hello';
% Now encode:
Mbinlong = reshape(dec2bin(double(M),7).',[],1)
I get this error :
Error using dec2bin Too many input arguments.
why this happens? How can i resolve this error?
8 comentarios
Walter Roberson
el 22 de Feb. de 2017
The code works as-is for me. Which MATLAB version are you using?
Jan
el 22 de Feb. de 2017
Please post the complete error message. I assume that another line is affected.
Walter Roberson
el 22 de Feb. de 2017
Please show
which -all dec2bin
in case you are getting a different dec2bin than is expected
ANJANA KRISHNAN A
el 27 de Feb. de 2017
ANJANA KRISHNAN A
el 27 de Feb. de 2017
Walter Roberson
el 27 de Feb. de 2017
Please show the output of
which -all dec2bin
R2013a did support passing the number of bits; see http://www.mathworks.com/help/releases/R2013a/matlab/ref/dec2bin.html
I think you are getting someone else's dec2bin
ANJANA KRISHNAN A
el 27 de Feb. de 2017
Editada: ANJANA KRISHNAN A
el 27 de Feb. de 2017
ANJANA KRISHNAN A
el 27 de Feb. de 2017
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Data Type Conversion 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!