*why* easter egg in MATLAB
조회 수: 8 (최근 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!