how to disp array
古いコメントを表示
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 件のコメント
Geoff Hayes
2014 年 11 月 15 日
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
2014 年 11 月 15 日
Geoff Hayes
2014 年 11 月 15 日
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
2014 年 11 月 15 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Adding custom doc についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!