MATLAB Release Notes - The MathWorks - #451

/ 505


catalogue search
P. 451
P. 452
P. 453
P. 454
P. 455
P. 456
P. 457
P. 458
P. 459
P. 460
P. 461
P. 462
P. 463
P. 464
P. 465
P. 466
P. 467
P. 468
P. 469
P. 470
P. 471
P. 472
P. 473
P. 474
P. 475
P. 476
P. 477
P. 478
P. 479
P. 480
P. 481
P. 482
P. 483
P. 484
P. 485
P. 486
P. 487
P. 488
P. 489
P. 490
P. 491
P. 492
P. 493
P. 494
P. 495
P. 496
P. 497
P. 498
P. 499
P. 500


See other catalogues for The MathWorks

Text version of the page
Programming, MATLAB Version 7 (R14)
In MATLAB V6.5 —
This feature is not supported prior to version 7.0. In MATLAB V7.0 —
??? Error using ==> strcmp Too many input arguments.
Error in ==> errmsgtest>nestFun1/nestFun2 at 6 strcmp('aa','bb','cc');
Copy and paste text ofthis error message into the dbstop command:
dbstop errmsgtest>nestFun1/nestFun2 at 6
Hot Link to the Source of an Error
Error messages now contain a blue-underlined hot link to the failing line of the M-file being executed.
Compatibility Considerations
If any of your programs rely on specific text in the types of error messages described here, you may have to modify your program code.
nargchk Has a New Format for Error Messages
When the nargchk function detects an error condition, it returns information on the error in either a string or a MATLAB structure. Use one of these two command syntaxes to specify which format to return. If neither is specified, nargchk returns a string:
msgstring = nargchk(minargs, maxargs, numargs, 'string') msgstruct = nargchk(minargs, maxargs, numargs, 'struct')
The return structure has two fields: the message string, and a message identifier . When too few inputs are supplied, these fields are
message: 'Not enough input arguments.' identifier: 'MATLAB:nargchk:notEnoughInputs'
427

pageCatalog pdf di En 2012-06-22-01