The software provided on this page has been tested with Matlab version 5 and 6 on HP-UX, Solaris, Linux, and Windows (MinGW).
The m-config package
provides GNU Autoconf macros checking for Matlab features and platform
incompatibilities. Documentation and a complete example project are
included in the package.
See the Matlab Configuration Utilities manual, for more details.
m-config is free software and distributed under the GNU
General Public License.
The m-dirs package provides
the directory stack commands as known from various Unix shells for Matlab.
Available Matlab commands are dirs, pushd, and
popd.
Command names and usage is equal to the Unix shell commands:
>> pwd ans = /tmp >> pushd /usr/bin /usr/bin /tmp >> pwd ans = /usr/bin >> popd /tmp >> pwd ans = /tmp
m-dirs is free software and distributed under the GNU
General Public License.
The m-regex package provides
POSIX regular expressions for Matlab. Available Matlab commands are
regcomp,
regnsub,
regexec,
regfree,
regerror, and
regnomatch.
Command names and usage is equal to the POSIX functions:
pattern = '[aeiou]+';
[regex, code] = regcomp(pattern, 'x');
if code ~= 0
error(regerror(code, regex));
end
fprintf('Pattern `%s'' has %d sub-expression(s)\n', ...
pattern, regnsub(regex));
strings = {'foo', 'bar', '42'};
for i = 1:length(strings)
string = strings{i};
[match, code] = regexec(regex, string);
if code == regnomatch
fprintf('Pattern `%s'' does not match `%s''\n', ...
pattern, string);
elseif code ~= 0
error(regerror(code, regex));
else
substr = string(match(1).so:match(1).eo-1);
fprintf('Pattern `%s'' matches `%s'' in `%s''\n', ...
pattern, substr, string);
end
end
regfree(regex);
m-regex is free software and distributed under the GNU
General Public License. If your system has no native support for POSIX
regular expressions, m-regex uses the GNU equivalent which
is distributed under the GNU Library General Public License.
The m-ui package provides
wrappers for Matlab's uicontrol and uimenu
family of commands. It simplifies building Matlab graphical user
interfaces a lot (in case you can not or do not like to use
guide):
f = ui_figure([100 100 200 150]); ui_frame(f, [0 0 100 100]); ui_frame(f, [100 0 100 100]); ui_frame(f, [0 100 200 50]);
m-ui is free software and distributed under the GNU
General Public License.