how to disp array
Afficher commentaires plus anciens
Hi everyone,
this is part of my code, I want to display LoadCase array (for example: HighWind).
LoadCase=input('Please specify the loading condition number (HighWind/HeavyIce/BrokenWire) ! ');
disp(LoadCase)
I don't know how;please help me.
Thanks.
4 commentaires
Geoff Hayes
le 15 Nov 2014
Hamid - what exactly are you expecting the user to enter when presented with the input request? A string or a number? Please provide an example, and describe what is going wrong with the above code. If you are observing errors (which you will for string inputs) then please post the error message.
hamid shakeri
le 15 Nov 2014
Geoff Hayes
le 15 Nov 2014
Hamid - are HighWind, HeavyIce, BrokenWire local variables in your code? Are they arrays, scalars, or something else? In the Command Window, just after running the above code, type
whos
to display all local variables, their sizes, etc.
hamid shakeri
le 15 Nov 2014
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Adding custom doc dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!