I wrote some nice wrapper functions for using MATLAB and QEASim from the terminal. QEASim is a simulation tool used in Olin College's Quantitative Engineering Analysis course. Sharing them in case anyone else wants them.
There are basically three things here:
matlab
: an alias which gets you the command window but in your terminal (if you later want to open full MATLAB, just typedesktop
)qeasim
a simple script that does exactly whatqeasim
does it MATLAB, but in your terminal. (It does this by starting MATLAB then doing whatever you asked it to do using realqeasim
.)qearun
, which is a fancy wrapper aroundqeasim
. Use it likeqearun gauntlet_final
, and it will start the simulation and cleanly shut it down when you're done.
Notably, qeasim
and qearun
are going to be way faster than doing it any other way, because they configure MATLAB to not load any UI/the JVM. It boots way quicker, and it doesn't matter because you use the in-simulator MATLAB anyways.
All of this works on Mac, and should work on Ubuntu/Linux/WSL if someone can figure out the right path to the MATLAB script. It won't work on normal windows, and as always, YMMV. Happy to help out a bit if needed.