Error while using dec2bin() : too many input arguments

조회 수: 9 (최근 30일)
ANJANA KRISHNAN A
ANJANA KRISHNAN A 2017년 2월 22일
댓글: ANJANA KRISHNAN A 2017년 2월 27일
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
ANJANA KRISHNAN A
ANJANA KRISHNAN A 2017년 2월 27일
편집: ANJANA KRISHNAN A 2017년 2월 27일
output of which -all dec2bin is :
F:\MATLAB\RSA\dec2bin.m
C:\Program Files\MATLAB\R2013a\toolbox\matlab\strfun\dec2bin.m % Shadowed
ANJANA KRISHNAN A
ANJANA KRISHNAN A 2017년 2월 27일
Thank you sir!! I think i was getting the dec2bin of the folder RSA!!Now i renamed that script.it's ok,right??

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2017년 2월 27일
You need to remove F:\MATLAB\RSA
from your MATLAB path. You can do that using pathtool

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by