When i run this code i get error using dec2bin (too many input arguments).

12 vues (au cours des 30 derniers jours)
Mohammed alfath Ahmed
Mohammed alfath Ahmed le 3 Fév 2020
Modifié(e) : James Tursa le 3 Fév 2020
Text='hi' ; A=dec2bin(text, 8);

Réponses (1)

James Tursa
James Tursa le 3 Fév 2020
Modifié(e) : James Tursa le 3 Fév 2020
MATLAB is case sensitive. Text (uppercase T) is different from text (lowercase t).
In the future, please post the complete error message and the offending line rather than writing your own summary of the error. It is hard for us to advise unless we know what the error message actually says. I don't get the same error as you do when I run your posted code, for instance.
  4 commentaires
Mohammed alfath Ahmed
Mohammed alfath Ahmed le 3 Fév 2020
Error using dec2bin 'too many input arguments'
James Tursa
James Tursa le 3 Fév 2020
Modifié(e) : James Tursa le 3 Fév 2020
I mean, type that into the command line and what is the result. I'm trying to figure out if you have shadowed MATLAB's dec2bin function.

Connectez-vous pour commenter.

Catégories

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by