What is status for?
5 ビュー (過去 30 日間)
古いコメントを表示
I've read many codes that when calling a function it equals to status. Like this:
[status]=function(s)
What is the status for?
0 件のコメント
採用された回答
Jan
2013 年 2 月 27 日
編集済み: Jan
2013 年 2 月 27 日
[status,message,messageid] = movefile(File1, File2);
if ~status
warning(message)
end
Now a warning appears, but it could be an error also. E.g. the destination could be write protected.
Equivalent for mkdir. Here the use of the status and the messages is explained in the documentation also: doc mkdir.
その他の回答 (2 件)
Doug Hull
2013 年 2 月 26 日
To let you know the status, or output of the function. It varies based on each function. Read the doc for each function for details.
rajashekar chava
2021 年 9 月 5 日
status(1)=!
1 件のコメント
Walter Roberson
2021 年 9 月 5 日
This is not valid syntax in MATLAB. The ! operation is only valid at the beginning of a command.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!