These are some tools for MATLAB that I use often. Specifically, if some MATLAB code I wrote prompts you that some scripts are missing, they are most likely here.
I set up my MATLAB to have these tools available by default.
To do this, I change the MATLAB userpath
to the folder containing these files.
This way on MATLAB startup startup.m
will run and these files will be in MATLAB's search path.
To get matlab-schemer when you clone this repo, see the insturction about git submodule
at the end.
Now a description of what some of these scripts does:
figure_default.m
: set the default figure properties to the style that I perfer. In particular, the text interpreter are set to be'latex'
and the color for line plots are ones freindly to colorblindness.pplot.m
: (pretty (enough) plot) call this function after the plotting commands. It sizes the figures so that they can be placed on a document without being scaled. 8cm is the right width so that 2 figures fit on a letter page side-by-side. (This function also place the figure on the monitor that works for my dual monitors setup, play withx0
andy0
to make this work for you)figs_convert.m
: call this function to convert all fig files in the folder to another type of files (the default is pdf).subaxis.m
: tools to make formatting subplots easier. From MATLAB File Exchange, authored by Aslak Grinsted. I made a modification to fix an oversight of the original version, see detail inRyan_change.txt
.
To also clone the submodules of this repository, use the insturction about git submodule
available here. Specifically, you could clone using
git clone --recurse-submodules -j8 https://github.com/Empyreal092/MATLAB_Tool.git
or after you have cloned this repo, cd
into the folder, and type in
git submodule update --init --recursive