コマンドウィンドウ上の直前エラーメッセージの記録方法
Show older comments
コマンドウィンドウ上であるコードを入力してエラーが発生したらすぐにそれをテキストファイルに記録したいと考えているのですが、例えば以下の様に間違ったコードを打ち込んでしまった場合に、エラーメッセージの部分だけをテキストに出力する事は出来るのでしょうか?
>> disp('Hello
disp('Hello
↑
エラー: 文字ベクトルの終端が正しくありません。
>>
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!