don't display variables
17 ビュー (過去 30 日間)
古いコメントを表示
Don't display this variable " disp('Matrici caricate:');" why?
if true
disp('Matrici caricate:');
[gcoord];
[nodes];
[elprop];
[bcdof];
[bcval];
[ff];
end
0 件のコメント
回答 (2 件)
Steven Lord
2016 年 11 月 11 日
If you call disp, it will display the text you ordered it to display regardless of whether or not the line ends in a semicolon. For lines that don't call disp or something similar, if a line ends in a semicolon that line will not display its results in the Command Window.
Compare:
a = 1:10; % WILL NOT display anything to the Command Window when executed
b = 1:10 % WILL display the variable to the Command Window when executed
a % WILL display
b; % WILL NOT display
0 件のコメント
Image Analyst
2016 年 11 月 11 日
We don't know. You are the one saying to not display it, not us. So if you don't want to display the string 'Matrici caricate:' then simply don't pass it into disp().
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Entering Commands についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!