Over the years, I have written a number of useful Matlab scripts. The tables below list some of them.
They are loosely arranged by subject.
These scripts are sometimes referenced from other pages on this website. Others are just along for the ride.
As usual, the sources come here warts and all,
and with zero guarantee.
If they contain functions or "objects"
Feel free to browse and copy any selection of these sources if you find them useful. If you don't have Matlab, you might want to run them in Octave Online, or use an online tool to convert them to Python for you.
Depending on your system settings, you may open an editor on them, or download them by left clicking the link, or by saving them to your disk directly by right clicking them and selecting "Save link as..".
| GIF_writer.m | Writing Matlab "gca" axes to animated GIF file, frame by frame |
| arrow.m | Rotatable and scalable arrow |
| CG_marker.m | Scalable CG symbol |
| dumbbell.m | Dumbbell shape |
| nicebox.m | Text box outline and font |