writting error meesage
1 回表示 (過去 30 日間)
古いコメントを表示
Hello how can i write code to print message my answer is:
if r > 0.49 sPrintf('the person is accepted.'); else error('the person is unccepted or not exist.') end;
please correct my answer
thanks
0 件のコメント
採用された回答
Oleg Komarov
2011 年 5 月 30 日
if r > 0.49
sprintf('The person is accepted.')
else error('The person is unccepted or not exist.')
end
0 件のコメント
その他の回答 (1 件)
Philip
2011 年 5 月 30 日
try using the 'msgbox()' function:
ie.
if r > 0.49
disp('The person is accepted')
else
msgbox('The person is not accepted','An error has occurred','error')
end
See "doc msgbox" for more details.
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!