Rank: 637 based on 194 downloads (last 30 days) and 20 files submitted
photo

Malcolm Wood

E-mail
Company/University
The MathWorks
Lat/Long
55.91838, -3.152583

Personal Profile:

Malcolm Wood is a member of The MathWorks' development team, and is based in Edinburgh, UK, working on Simulink. He was previously a member of The MathWorks' consultancy team.


 

Watch this Author's files

 

Files Posted by Malcolm Wood View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
06 Jul 2010 Assertion function A function similar to "assert" in C to assist in bug detection Author: Malcolm Wood test, testing, tests, assert, failure, regression 6 6
  • 3.75
3.8 | 5 ratings
06 Jul 2010 Screenshot Changing Window Titles Provides the ability to change the titles of all windows in the MATLAB process Author: Malcolm Wood gui tools, example, window, windows, title, titles 17 7
  • 3.0
3.0 | 4 ratings
25 Jun 2010 Screenshot Resizable MATLAB figures A simple mechanism for creating graphical user interfaces which resize tidily Author: Malcolm Wood gui tools, example, figure uicontrol resi... 12 2
  • 5.0
5.0 | 2 ratings
30 Apr 2010 Screenshot HGTable - functions for displaying tabular data in a MATLAB list control Uses a standard MATLAB listbox to display multiple columns of data Author: Malcolm Wood gui tools, example, list listbox table ta... 5 3
  • 4.0
4.0 | 2 ratings
30 Apr 2010 parseargs: Simplifies input processing for functions with multiple options For parsing function arguments supplied as name-value pairs, e.g. 'XLim',[0 10],'YLim',[0 100] Author: Malcolm Wood parse function argume... 55 5
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Malcolm Wood View all
Updated File Comments Rating
26 Jan 2010 find_in_models: Search the entire block diagram hierarchy A wrapper for find_system which searches inside model references Author: Malcolm Wood

You may have run into the bug I just fixed, where model references inside library links weren't followed.

17 Dec 2009 Changing Window Titles Provides the ability to change the titles of all windows in the MATLAB process Author: Malcolm Wood

Review

Comments and Ratings on Malcolm Wood's Files View all
Updated File Comment by Comments Rating
17 Nov 2014 exportToZip: Identifies the dependencies of an M-file and creates a ZIP file Files inside $matlabroot/toolbox are omitted, providing a useful way to package your work Author: Malcolm Wood Jack

This should really be part of Matlab -- it Just Works.

Just a quick shout out: if you want to include object-orientated code in your .zip, by default depfun and "mydepfun" won't find private methods of your objects. This is because they'll never be on your path (by definition) and you'll get errors like "error using depfun > next_arg_file. The file 'privateMethod' does not exist".

The solution to this is to change line 39 of exportToZip to read

req{i} = matlab.codetools.requiredFilesAndProducts(funcname{i});

which can handle objects properly.

08 Oct 2014 Changing Window Titles Provides the ability to change the titles of all windows in the MATLAB process Author: Malcolm Wood Ellis King

Works well for windows, but I really need Linux support -- Has anyone discovered how to replicate this for that platform?

09 Mar 2012 parseargs: Simplifies input processing for functions with multiple options For parsing function arguments supplied as name-value pairs, e.g. 'XLim',[0 10],'YLim',[0 100] Author: Malcolm Wood batman52

I am trying this, but it's not passing the argcheck of inputParser...

function [varargout] = struct2varargin(instruct)

fields = fieldnames (instruct);
values = struct2cell (instruct);

varargout = {};
% length(fields)
% length(values)

for idx =1:length(values)
varargout{2*idx-1} = char(fields{idx});
varargout{2*idx} = values{idx};
end

end

09 Mar 2012 parseargs: Simplifies input processing for functions with multiple options For parsing function arguments supplied as name-value pairs, e.g. 'XLim',[0 10],'YLim',[0 100] Author: Malcolm Wood batman52

Does it exist somewhere, the inverse function for this?

What I need to do is:

f_setstate('param1',p1val,'param2',p2val)
savestate = f_getstate();
f_setstate(struct2varargin(savestate))

Input parameters for f_setstate has to be pv pairs, because i am using inputParser to parse it.
At the same time, I like savestate being a structure, because it's easier to hanlde than pv pairs.

28 Nov 2011 exportToZip: Identifies the dependencies of an M-file and creates a ZIP file Files inside $matlabroot/toolbox are omitted, providing a useful way to package your work Author: Malcolm Wood ingegnerisinasce Rossi

Simply great

Contact us