User`s guide

R2014a
3-4
Language and Programming
Suggested corrections for mistyped, user-defined functions in the
Command Window
MATLAB suggests corrections for function names mistyped in the command window.
This functionality now includes suggestions for custom, or user-defined, functions on the
MATLAB path.
Streamlined MEX compiler setup and improved troubleshooting
mex -setup is no longer necessary in most situations
Setting up mex compilers has been simplified. For most users, there is no longer any need
to run mex -setup. mex automatically locates and uses a supported installed compiler.
mex reports selected compiler and success status
mex, by default, identifies the compiler it is using at build time and reports success.
To suppress this feature, use the new -silent option. mex still reports errors and
warnings, even when you specify -silent.
mex maintains different settings for C and C++
mex maintains different settings for C and C++ compilers.
Compiling for MATLAB engine applications is different
To build an engine application or a standalone application to read MAT-files, use the mex
command with the new -client engine option. For more information, see What You
Need to Build Engine Applications or What You Need to Build Custom Applications.
mex uses standard quoting and no escape characters
If you specify varname=varvalue parameters when you invoke mex, you no longer need
to use double-quotes (") on Windows, or escape the $ character on Linux. To redefine a
variable, use MATLAB-style single quotes (') and no escape characters.
mex -setup takes a language setting
mex -setup selects a compiler for a given language, lang. If lang is not specified, mex -
setup searches for C compilers.