Error while using dec2bin() : too many input arguments

4 vues (au cours des 30 derniers jours)
ANJANA KRISHNAN A
ANJANA KRISHNAN A le 22 Fév 2017
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 commentaires
ANJANA KRISHNAN A
ANJANA KRISHNAN A le 27 Fév 2017
Modifié(e) : ANJANA KRISHNAN A le 27 Fév 2017
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 le 27 Fév 2017
Thank you sir!! I think i was getting the dec2bin of the folder RSA!!Now i renamed that script.it's ok,right??

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Fév 2017
You need to remove F:\MATLAB\RSA
from your MATLAB path. You can do that using pathtool

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by