Error while using dec2bin() : too many input arguments
이전 댓글 표시
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
Walter Roberson
2017년 2월 22일
The code works as-is for me. Which MATLAB version are you using?
Jan
2017년 2월 22일
Please post the complete error message. I assume that another line is affected.
Walter Roberson
2017년 2월 22일
Please show
which -all dec2bin
in case you are getting a different dec2bin than is expected
ANJANA KRISHNAN A
2017년 2월 27일
ANJANA KRISHNAN A
2017년 2월 27일
Walter Roberson
2017년 2월 27일
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
2017년 2월 27일
편집: ANJANA KRISHNAN A
2017년 2월 27일
ANJANA KRISHNAN A
2017년 2월 27일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!