Software Listing of Author : "Kevin Bartlett"
- Annotated cropping of data plots
- License: Shareware
- Price:


With the same data plotted in two sets of axes, cropbox.m draws a box in the first axes to indicate the cropping limits specified by the user. The second axes is cropped to the specified limits and lines are drawn linking the corners of the cropping box to the corners of the cropped axes. Lines are broken into multiple line segments at the points where they intersect with any axes bounding boxes in the figure. This allows the user to customise the line properties, making them invisible where they pass in front of a ylabel, for instance, or making them white where they pass in front of a dark image.
- Publisher: Kevin Bartlett
- Date Released: 04-02-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- choose_profile_limits
- License: Shareware
- Price:


GUI for choosing limits of oceanographic profiles. Useful for separating CTD data into downcast and upcast portions. choose_profile_limits can be used on the command line or incorporated into a larger program. For example, a program could loop over many CTD casts, reading in the data and calling choose_profile_limits to ask the user to supply endpoints for each.
- Publisher: Kevin Bartlett
- Date Released: 05-01-2013
- Download Size: 31 KB
- Download
- Platform: Matlab, Scripts
- choose_transect_limits
- License: Shareware
- Price:


Allows user to employ graphical controls to choose start and end points of oceanographic transects. Useful for ADCP, echosounder and towed-body transects. A zoomable map display shows the entire ship track and the currently-selected transect. The user selects transects using either "dial"-style controls or conventional pushbuttons. Dial-style controls will not work in Matlab releases prior to R2008a, so set DIAL constant to zero to prevent use of dial-style controls. Install by unzipping .zip file and adding the "choose_transect_limits" and "dial" directories to your Matlab path (do NOT add the dial/@dial directory to your path).
- Publisher: Kevin Bartlett
- Date Released: 11-01-2013
- Download Size: 113 KB
- Download
- Platform: Matlab, Scripts
- dial
- License: Freeware
- Price: 0.00


Creates a "dial"-style graphical user interface control. Similar in operation and programming interface to Matlab's slider-style uicontrols, but moves in a rotary fashion, rather than linearly. Also different in that a dial control can take minimum and maximum values of -Inf and +Inf. Install by putting "dial" directory on your Matlab path (do NOT add the "dial/@dial/" directory to your path). Run the dial_demo.m program for examples of how to use dial.m. Known bugs: dial objects sometimes very slow to appear and sluggish in response to user inputs. This seems random, and is apparently something internal to Matlab. Closing the figure and regenerating the dial object usually makes the problem go away.
- Publisher: Kevin Bartlett
- Date Released: 01-06-2013
- Download Size: 31 KB
- Download
- Platform: Matlab, Scripts
- Error-tolerant parsing of newline-delimited data
- License: Shareware
- Price:


Adaptive parsing of newline-separated data. Handles bad lines WITHOUT reading line-by-line. Generally, when parsing newline-delimited data, it is fastest to parse all the lines in a single step, using "vectorized" functions like fscanf, rather than looping over the data line-by-line. A single corrupt line in your data, however, can cause your parsing function to fail. When this happens, the easiest workaround is to resort to line-by-line parsing, but this can be extremely slow. adaptive_parse.m provides a means to apply efficient parsing functions to newline-delimited data containing corrupt lines. The user supplies a parsing function, customised for his/her specific data file format, which is passed to adaptive_parse as a function handle. If no corrupt data lines are encountered, adaptive_parse calls the parsing function only once,...
- Publisher: Kevin Bartlett
- Date Released: 01-06-2013
- Download Size: 51 KB
- Download
- Platform: Matlab, Scripts
- Extremely simple version control for Matlab code
- License: Shareware
- Price:


vcp creates backups of existing m-files for easy backtracking when editing code. The command vcp myprogram entered on the command line, looks for an m-file named 'myprogram.m' on the Matlab search path. If it is found at, say, /home/kevin/matlab/plotting/, then a backup copy named 'myprogram.m.000' will be created in /home/kevin/matlab/plotting/devel/ (if the 'devel' sub-directory does not exist, it will be created). Subsequent calls to vcp myprogram will create backups named 'myprogram.m.001', 'myprogram.m.002', etc. The command vedit myprogram would do the same, but would also open the specified program in the Matlab editor. Works in both Unix and Windows.
- Publisher: Kevin Bartlett
- Date Released: 07-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Graphic depiction of timelines
- License: Shareware
- Price:


Makes horizontal timeline plot. Timelines can start and stop either once or multiple times. Timeline plots are useful for depicting historical data or for project management, among other things. Timeline.m makes an arbitrary number of horizontal timelines in the current axes. Each timeline is labelled on the y-axis. A given timeline can start and stop either once or multiple times. The demonstration code in the 'help' section employs Matlab-format times, but timeline.m is not restricted to any particular time format--seconds, minutes, years, etc., can also be used.
- Publisher: Kevin Bartlett
- Date Released: 13-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- mmcount.m
- License: Shareware
- Price:


If you want to read in the last frame of a .asf file using mmread(), you can read in the entire file, but this can be very slow or cause Matlab to run out of memory. You can read in only the last frame using mmread(), but to do this, you need to know the number of frames in the file. mmcount() counts the number of frames in the file, after which mmread() can be used to read in the final frame. The time taken to count the frames and read in the final frame is much less than the time taken to read in the entire file with mmread(). mmcount() makes use of mmread() itself to do the counting.
- Publisher: Kevin Bartlett
- Date Released: 02-04-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Open new m-file with standard header text in editor
- License: Shareware
- Price:


Creates a new m-file in the current directory. The m-file is created with a standard header text, giving the Matlab version, operating system, author, date and time and, optionally, the author's organization (the values for the author and organization are customizable). The m-file created is opened automatically in the Matlab editor. The following is the contents of the m-file named 'myprogram.m', created with the command newmf myprogram function [] = myprogram() % % myprogram.m-- % % Syntax: % % e.g., % Developed in Matlab 7.12.0.635 (R2011a) on GLNX86. % Ada Lovelace (ada@example.com), 2011-12-09 12:29 %-------------------------------------------------------------------------
- Publisher: Kevin Bartlett
- Date Released: 03-01-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- py_udp
- License: Freeware
- Price: 0.00


UDP packets are used to send data from one computer to another over a network or from one application to another within a single computer. The py_udp programs enable Matlab to send and/or receive UDP packets. One Matlab session can communicate with another Matlab session (on the same machine or over the network) or it can communicate with a completely different program (again, on the same machine or over the network). The py_udp programs use the UDP utilities from the Python programming language to send and receive UDP packets, so Python must be installed on the computer running Matlab. The py_udp programs are very simple and can be considered as a lightweight alternative to the more feature-rich TCP/UDP/IP Toolbox written by Peter RydesdoTAter or to Mathworks' own Instrument Control Toolbox. The py_udp programs are not suitable for...
- Publisher: Kevin Bartlett
- Date Released: 05-05-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- TCP/IP Communications in Matlab
- License: Freeware
- Price: 0.00


Transmission Control Protocol (TCP/IP) communications are used to send data from one computer to another over a network or from one application to another within a single computer. The jtcp.m program uses Matlab's ability to call Java code to enable it to send and/or receive TCP packets. One Matlab session can communicate with another Matlab session (on the same machine or over the network) or it can communicate with a completely different program (again, on the same machine or over the network). This latest version of jtcp.m writes and reads messages of type "int8" only. The jtcp.m program is basically just a friendly wrapper for Rodney Thomson's "example" TCP/IP code (also on File Exchange).
- Publisher: Kevin Bartlett
- Date Released: 08-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Web-browser viewable GUI animations of .PNGs, .GIFs, etc.
- License: Shareware
- Price:


Creates javascript/html GUI-driven animation of still images (GIFs, JPEGs, etc.). Let's say you have 24 .png graphics files you have generated in Matlab. You would like to view them as an animation, so you convert them to a movie format like .avi or .mpeg, with each graphics file being a separate frame of the movie. There are three problems with the resulting movie: (1) You find you can't view it on certain platforms or without installing a particular piece of software; bewildering messages about "missing codecs" appear on your screen when you try to view the movie on a Linux machine. (2) The movie file is HUGE, despite consisting of only 24 frames. (3) The image quality is much worse than in the original graphics files. The solution to these problems is to view the animation with a javascript/html page that cycles through each...
- Publisher: Kevin Bartlett
- Date Released: 22-03-2013
- Download Size: 2591 KB
- Download
- Platform: Matlab, Scripts

