Software Listing of Author : "Ben Mitch"
- datastore
- License: Shareware
- Price:


Some applications/scripts may want to persist small amounts of data (e.g. user preferences) across Matlab sessions. Rather than each application having to implement this, this small utility provides this persistent storage. Data are stored in the APPDATA folder (Windows) or the user's home folder (*Nix).
- Platform: Matlab, Scripts
- mex_rref
- License: Freeware
- Price: 0.00


Same functionality as the MATLAB rref function, but quicker. >> mex_rref_demo A = rand(200); R1 = rref(A); Elapsed time is 1.435837 seconds. R2 = mex_rref(A); Elapsed time is 0.012729 seconds. max(max(abs(R1 - R2))): 0 Speed-up factor: 113
- Platform: Matlab, Scripts
- mex_sepsq
- License: Freeware
- Price: 0.00


To compute the Euclidean separation (L2 norm) between two sets of points in MATLAB can be slow and/or memory-hungry. In some cases (most particularly, if you are working with 2D, 3D or 4D data), this function will do it 2-4 times faster than the fastest m-code I've seen (due to Germano Gomes) and hundreds of times faster than a typical memory-efficient nested loop. NB: for D much greater than 10-15, performance is better using GG's m-script. See the screenshot for a performance plot - green is GG, blue is mex_sepsq. >> mex_sepsq_demo A = randn(4, 5000); B = randn(4, 5000); C1 = mex_sepsq(A, B); Elapsed time is 0.201335 seconds. C2 = sepsq_gg(A, B); Elapsed time is 0.517755 seconds. Relative time per implementation: 1.00 2.57
- Platform: Matlab, Scripts
- Panel
- License: Shareware
- Price:


Panel is an alternative to Matlab's "subplot", providing easier control over layout (particularly, better use of space). If you find the layouts generated by subplot() have too much space and not enough axis, try Panel. If you find it tedious to construct subplot layouts that are more complex than a simple grid, try Panel. If you always resort to other software to prepare your final figures for publication because you can't get the appearance you want from Matlab, try Panel. Panel was designed to produce output for print publications directly from Matlab. Layouts are, by default, in physical units (mm, by default), and exporting to a graphics file targets print columns directly. However, it performs equally well if the end goal is digital display, providing easy control over use of screen real estate. Panel incorporates features...
- Platform: Matlab, Scripts
- priority
- License: Freeware
- Price: 0.00


**WINDOWS only - must be compiled before use** If you want to do some heavy processing and you don't want your computer to get all sluggish whilst it's going on, you can use this tool thusly: pri=priority('l') % set priority to low <do processing> priority(pri) % set it back
- Platform: Matlab, Scripts
- progbar
- License: Shareware
- Price:


This is a script based progress bar for MATLAB, simple usage is very simple, more complex usage is available. multiple instances no problem. NOTE: special consideration has been given to not slowing down your hyper-optimised loops, so you should find this better than the sort of progress bar you get for free in a box of cereal. NOTE: updated 12/05/2010 to be even better (twice as good) at not slowing down your loops. i think i really need to get a life. typical usage: -------------- info.color='red'; info.title='hard work'; p=progbar(info); for n=1:1000 % do hard work here... progbar(p,n/1000*100); end progbar(p,-1);
- Platform: Java, Scripts
- progbar (mex)
- License: Shareware
- Price:


Class CProgBar implements progress bar windows. Very handy for use from within MEX files. Quick too.
- Platform: Matlab, Scripts
- rgb.m
- License: Freeware
- Price: 0.00


rgb(col) returns a Matlab RGB colour triplet [R G B] converted from 'col'. 'col' can be: an [R G B] triplet (unchanged) a colour name, e.g. 'pale orange' a matlab colour char (k,r,...) a QBASIC colour code (0-15) a DWORD colour code (0-0xFFFFFF) a DWORD BGR colour code
- Platform: Matlab, Scripts
- selectfigure
- License: Shareware
- Price:


To create/select a figure, you would usually use a command such as "figure(1)". Trouble with this is that, if you run multiple scripts as part of an analysis, they can end up stamping on each others' figures. An alternative is to create a figure using just "figure", but this will generate many many figure windows and make you wild and crazy. This function provides a new way of selecting a figure based on a text string, e.g. "selectfigure 'Plot of people against cake'", making conflicts a thing of the past.
- Platform: Matlab, Scripts
- surfi
- License: Shareware
- Price:


I often need to visualise a surface formed by a set of vertices when those vertices are not on a regular grid. surf() won't do this, so i made this file to generate the surface then plot it. The suffix `i' indicates "interpolate". Also included is triangulate (a port from third party code, see help for details), which returns the surface without plotting it. This needs compiling before use. Note that if you sort vertices before passing them to the function performance will generally be better, since you can sort them more intelligently than the algorithm can. See "help surfi".
- Platform: Matlab, Scripts
- textfile
- License: Shareware
- Price:


This convenience function provides one-call read/write access to a flat text or line-based text file using calls of the following form. content = textfile(filename); textfile(filename, content); The content can be returned as a char array, or a cell array of lines in the file. Some additional options are provided (see help).
- Platform: Matlab, Scripts