*why* easter egg in MATLAB
13 ビュー (過去 30 日間)
古いコメントを表示
Typing "why" into the command prompt yields a random answer. My question is: WHen I execute "why", how can I store the output string as a variable?
0 件のコメント
採用された回答
その他の回答 (2 件)
Daniell Algar
2013 年 2 月 1 日
編集済み: Daniell Algar
2013 年 2 月 1 日
This is quite the ugly solution but. Open a script, paste
diary('whyText.txt')
for i= 1: 10
why
end
diary off
and you'll store the answers in the current folder/whyText.txt.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!