*why* easter egg in MATLAB
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Più risposte (2)
Daniell Algar
il 1 Feb 2013
Modificato: Daniell Algar
il 1 Feb 2013
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 Commenti
Vedere anche
Categorie
Scopri di più su Holidays / Seasons in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!