Software Listing of Author : "Malcolm Wood"

Widely used in languages such as C and (now) Java, assertions are a very useful way of detecting bugs as early as possible in development. Simply assert in the code that you believe something to be true: ASSERT(ischar(x) && ~isempty(x),'x is a non-empty string') If, at runtime, x is not a non-empty string, the ASSERT function throws an error. Using the assertion, rather than waiting for something else to go wrong, guarantees that the problem doesn't go unnoticed, and gives you a meaningful error message. It also serves as a kind of documentation: when you come back to this code in future to change the way that variable "x" is handled, you can be sure that you don't need to consider the case where "x" is empty or is not a string. There are two reasons to use ASSERT rather than just using "error" itself. Firstly, assertions are...

  • Platform: Matlab, Scripts

An easy-to-use MATLAB function which lets you quickly review the changes to files in a CVS sandbox. Uses "cvs diff" to get the list of changes, creates an HTML report showing the same information but in a much more readable form, and shows it in the MATLAB Help Browser. At its most useful when reviewing small changes to a large number of files because: 1) the output is much easier to read than the plain text from CVS. 2) the differences for all files are available on one page, whereas using other diff tools (e.g. WinMerge via TortoiseCVS) you would have to open each file individually. To use, either change MATLAB's working directory to the directory of interest in the CVS sandbox and type: >> cvsdiff or specify the directory using (e.g.): >> cvsdiff C:worksandbox

  • Platform: Matlab, Scripts

Those of us developing graphical applications in MATLAB do not want our users to be exposed to the internals of our work. Unfortunately, the built-in "error" function prefixes to the error message the name of the function which threw that error, which is unlikely to be of any interest to the user and serves only to confuse. This is particularly true when using the MATLAB Compiler to create applications for use by people with no knowledge of MATLAB. The API supplied here provides a wrapper for the "error" function which stores the error message without that extra line, so that it can be retrieved later and shown to the user. To use this functionality, replace calls to "error" with identical calls to "xError", e.g.: error('MyApplication:MyErrorIdentifier','This operation did not work because %s',reason); becomes:...

  • Platform: Matlab, Scripts

The function "mydepfun" determines the dependencies of an M-file, ignoring files inside the MATLAB "toolbox" directory. Skipping these files gives significant performance improvements over calling "depfun" directly, especially in MATLAB installations which include multiple toolboxes. The assumption is the same as that in "mypath.m", i.e. that most of us do our work in directories outside $matlabroot/toolbox. The function "exportToZip" creates a ZIP file containing all the dependencies identified by "mydepfun" for one or more MATLAB functions. This simplifies the process of passing your work to another user, or uploading it to MATLAB Central, by reducing both the effort required and the likelihood of a file being missed out. The limitations of "depfun" apply: for example, that dependencies introduced by calls such as "eval('peaks')"...

  • Platform: Matlab, Scripts

find_system provides the option to search inside library links, but does not currently give the option to search inside model references. This function provides this option, and, unlike find_system itself, can also close block diagrams after searching them. This ensures scalability when searching large hierarchies. The usage is very similar to that of find_system itself except that a model name or handle must be specified. The return type also depends on the inputs in the same way as for find_system: specifically the return type is a cell array of strings unless the input is a numeric handle ot the "FindAll" option is supplied and "on". When the return type is a cell array of strings, any block diagrams which are loaded during the search are closed again. This means that the caller must take care before calling get_param on any...

  • Platform: Matlab, Scripts

A very simple function which uses the DataFeed toolbox to retrieve stock prices for a specified number of days from the Yahoo service and plots them. e.g. to see how your Microsoft shares have done over the last three months, just type: >> show_chart('MSFT',90)

  • Platform: Matlab, Scripts

This is a layout manager for axes and controls in a MATLAB figure, designed for graphical user interfaces in which, during resizing of the figure, some controls (e.g. buttons) are to remain the same size while others (e.g. axes, text fields, list boxes) are to change size. To achieve this, the figure is split into a grid with a border and with spacing between each cell. Some rows and columns (at least one of each) are variable in size and the rest are fixed. When the figure is resized, the available space (i.e. that not required by the fixed-size rows and columns) is distributed among the variable-sized ones according to a specified ratio. If there is not enough space for the fixed-size rows or columns, these (and the spacing between them) will be made smaller too. Controls can be merged across multiple rows and/or columns and can...

  • Platform: Matlab, Scripts

This function addresses two of the major shortcomings of the M-Lint report which is available in the MATLAB Directory Browser. Firstly, it will perform a recursive analysis, i.e. the current directory and its subdirectories and their subdirectories etc. Secondly, it allows the user to filter out classes of message which are not of interest. To run the function on a directory tree, simply change to that directory and type: >> runmlint An HTML report will be created, showing all the messages issed by M-Lint for files in the current MATLAB directory and its subdirectories. To filter the results, create an "options" file. Each line in this file specifies a "filter", which can: * filter out all messages with a specific ID * filter out all messages in a specific file * filter out messages with a specific ID in a specific file * filter out...

  • Platform: Matlab, Scripts
New Reviews

Print Inspector

Whether you are using a printer connected to your local desktop computer or a print server sometimes you need to see whats going on in your printer by having a close look at the print jobs sent by the users. Print Inspector is such type software ...

Disk Genius

Disk Genius was formerly known as Partition Guru which is an all-in-one solution for disk partition management, data recovery and disk repairing. It can recover lost files from partition, backup and restore partition table, clone partition or clone ...

Safe In Cloud

It is quite difficult to find any computer users nowadays who do not need to use the web, for any purpose. Whether it is for education or entertainment, the web is your best resource. You also need to use various online services for banking, ...


Nowadays, a majority of PC users resort to digital image editing once in a while. It may be required for retouching image captured in smart phones or for creating an album in Facebook. For some people, tinkering with digital images is a pastime too. ...

Panda Cloud Cleaner

PC security has become a tricky and complicated subject both for home users and network supervisors, with complexity and risk factors multiplying over the years. Using a single antivirus app may not be enough anymore. That explains why many users ...


Nearly every PC users need to take screenshots from time to time, whether it is for personal or professional needs. While using the basic Windows screenshot capture method is available, it is not adequate for everyone. When you want to capture ...


Dealing with various types of data efficiently holds the key to success in any computing task. Apart from generating new data and modifying existing files, it becomes necessary to delete existing files at times. While most users resort to using ...

New Downloads

Active@ Disk Image

Active@ Disk Image is a PC
disk image software that can
do a backup as well as clone
the full hard drive. A backup
image ...

Home Plan Pro

Many CAD programs are designed
for architects and engineers.
Thesecan be expensive, as well
as hard to learn, and ...

Express Animate Pro for Mac

Express Animate is an
animation software for Mac
that gives you the ability to
animate shapes, text and
imported images.

Aml Maple

Aml Maple has a new kind of
view on keyboard layout
indicators: simple, modern,
flexible. In addition, you can
change the ...

Network Shares Recycle Bin

The Network Shared Recycle Bin
allows you to backup and
recover deleted files on the
server side. Once you have
this tool ...

PhotoStage Photo Slideshow
Software Free

PhotoStage Free Slideshow
Software lets you create a
slideshow from your digital
photos and videos on Windows
and apply ...

RecordPad Pro Edition for

RecordPad Pro Edition for Mac
is ideal for recording voice
and other audio to add to
digital presentations,
creating an ...

Express Burn Plus for Mac

Express Burn Plus for Mac is
an ultra fast burner to help
save you time. Burn audio,
video, or files to CD, DVD.
Express ...

Active@ LiveCD

Active@ LiveCD is tool set
which helps you to recover
lost data, reset passwords,
back up computers, securely
erase data.

PureVPN Windows VPN

The updated Windows VPN app
comes with new and improved
features, including enhanced
usability, better speed, and