Matlab m-file library
I've started sharing my files on Matlab Central's File Exchange. Check there first to see my best, most useful, and most interesting functions. The stuff left on this page is here either because I'm lazy or because it isn't worthy of the File Exchange. If you modify any of these files for your own use, please let me know.
- ccc
- Simple shortcut for cleaning up the workspace. I use it every day.
- daycount
- Generalized countdown to an important date. Useful if called from startup.m.
- iseven + isodd
- Check if integers are even or odd.
- lic
- Display information about network licenses in a human readable format. This is probably very sensitive to the license manger version and I haven't tested it with any but my own.
- loon
- L out of N binary filter.
- mem
- Report how much memory Matlab variables are using in human readable sizes (B, KB, MB, etc.).
- mkver
- An easy way to create versioned backups of files as you edit them. I use it to save the state of my code when I get a good working version. Then I can edit some more without the risk of messing up my prior work.
- namb
- N-above, M-below binary filter.
- num2ord
- Transform a number into an ordinal. For example, '3' becomes '3rd'.
- rle + rld
- Run length encoding and run length decoding. The code is tricky because it is vectorized, but it is very fast.
- sec2timestr
- Convert a number of seconds into a human readable string using units of days, hours, minutes, and seconds. This function is embedded in progressbar (see above) but it could be useful on its own.
- textbox
- Display text in a figure with line wrapping. Great for making notes about your plot because they stay with the plot when you copy-paste.
- whos
- Augments the built in whos function to report memory usage in a human readable format.
This page last updated on