User`s guide
R2006b
21-2
Desktop Tools and Development Environment
Startup and Shutdown
New features and changes introduced in Version 7.3 (R2006b) are described here.
Associate Files from MATLAB Program with Windows Operating System Using New Utility
You can run a utility from the Help browser to associate .m, .mat, .fig, .p, and .mdl
files with the MATLAB program in the Microsoft Windows operating system. After
running the utility, you will be able to start MATLAB by double-clicking any of those
file types in Windows Explorer. You can still use Windows Explorer Folder Options to
perform these file associations, but the utility makes the task more convenient. For
details, see Associating Files with MATLAB on Windows Platforms.
Redirect Output on UNIX Now Sends Errors to Shell
When you start MATLAB on platforms running The Open Group UNIX operating
system using the -nodesktop startup option, and you redirect output, for example
to a file, MATLAB now sends any errors to the shell, while normal output goes to the
redirect target. This change was made so that redirection withMATLAB follows standard
behavior for the UNIX operating system.
For example:
matlab -nodesktop -"r magic(3), magi(5)" > test.txt
starts MATLAB in nodesktop mode, runs the statement magic(3) and writes the
output to test.txt. When MATLAB runs magi(5), execution fails and MATLAB
displays the error message in the shell.
Compatibility Considerations
In previous versions, MATLAB redirected both output and error messages, so in the
above example, MATLAB wrote the output of magic(3) as well as the error message
from magi(5) to test.txt.
If you have shell scripts that use > to redirect output, and you rely on errors appearing in
the output target, you need to modify the matlab startup statements in those scripts.