MATLAB Release Notes - The MathWorks - #45

/ 505


catalogue search
P. 01
P. 02
P. 03
P. 04
P. 05
P. 06
P. 07
P. 08
P. 09
P. 10
P. 11
P. 12
P. 13
P. 14
P. 15
P. 16
P. 17
P. 18
P. 19
P. 20
P. 21
P. 22
P. 23
P. 24
P. 25
P. 26
P. 27
P. 28
P. 29
P. 30
P. 31
P. 32
P. 33
P. 34
P. 35
P. 36
P. 37
P. 38
P. 39
P. 40
P. 41
P. 42
P. 43
P. 44
P. 45
P. 46
P. 47
P. 48
P. 49
P. 50


See other catalogues for The MathWorks

Text version of the page
Desktop Tools and Development Environment, MATLAB® Version 7.6 (R2008a)
Preferences dialog box. Ifyouusethe ' config=settings.txt' option, you must specify the full path to the file. If you prefer that m-lint ignore all M-Lint preferences and use the factory default settings instead, specify the ' config=factory' flag. See m-lint for details.
Compatibility Considerations. Previously, the mlint function always used the factory default settings, regardless ofthe M-Lint preferences that you set. To restore that behavior, use the ' config=factory' flag on the mlint function.
New M-Lint Warning Related to the MException Class
MATLAB Version 7.6 (R2008a) adds a new M-Lint warning related to the MException class. This warning, along with two M-Lint warnings added in MATLAB Version 7.5 (R2007b), intentionally make it difficult for you to completely ignore an error without receiving an M-Lint warning. It is a best practice to check error information even when an error is expected or frequent, so that you can rule out unexpected situations.
The three messages are as follows—the first is the one added in MATLAB
Version 7.6 (R2008a):
• LASTERR and LASTERROR are better replaced by an identifier on the CATCH block. See doc CATCH.
• The value assigned here to variable 'x' might never be used.
This message appears when the code contains a catch statementthatis never used.
• TRY statement without a CATCH.
For example, suppose you want to read options from a file, options .txt, but it is acceptable if that file is not present. You might write the following code, expecting the read_options program to throw an error if the file is not present:
options = {}; try
options = read_options( "options.txt );
end
21

pageCatalog pdf di En 2012-06-22-01