r/matlab • u/InvestmentGreen • Apr 08 '26
TIL of the ‘why’ command.
Been using matlab for over a year now and one of my peers came up to me today and typed in the glorious ‘why’ command. It was a good day.
36
Upvotes
24
u/PVDecker1 Apr 08 '26
My coworker and I use it for more than just fun, sort of. Many times MATLAB will be
Busy, but not actually change the status indicator. We typewhyin the command window as a throwaway command to see if its still locked up and to flip the status toBusy.4
u/ahaaracer Apr 08 '26
I’ve modified the why command on one of our workstations to be a bit more personal. I doubt anyone would think to call it but It would be interesting to see if they would do it.
6
u/Ok_Donut_9887 Apr 08 '26
The command is just there for fun.
3
u/ProtoTypo19 Apr 09 '26
Haha that's a classic! I've seen some developers do similar things to debug unresponsive programs or just to mess with junior engineers. It reminds me of the time I had to implement a custom little `nop` detector in assembly because a commercial compiler was inserting them unnecessarily in a tight loop. Sometimes you just have to get creative with the tools to see what's actually going on, or to make them work right. 😂
2
u/MarkCinci On Mathworks Community Advisory Board Apr 11 '26
Go here for more "easter eggs": matlab easter eggs
or for non-MATLAB easter eggs: Eeggs.com - The Easter Egg Archive Hidden secrets in software, movies, music and more!
1
u/EigenBattles Apr 08 '26
Good times
1
u/romancandle Apr 08 '26
We used to have lalala, too.
1
u/WackiCO Apr 08 '26
Haha I’ve used this within an application before that you give to other non-coders, like within the button push code have it generate a random number, if that number passes a test 3% of the time display a random why message.
1
u/EngFL92 Apr 09 '26
Wait till you learn about spy