Advanced Matlab (GE-4200) Examples (Code)

Winter Quarter '11-'12


Zip Descirption

FunctDoc

Function review and internal documentation example. Function f2k and script functconv.

PowerCalc Example of debugger, input validation and handle graphics usage. Function curPowCalc and script powEntry.
TextConversion Example of cell arrays, cell strings (cellstr), inputdlg (simple input dialog box). Script textConv2.m and sample.txt data file.
VarArgs Number of arguments and variable argument lists examples. Functions nargtest and vargtest.
IOErrorDemo Draft Try-catch, MException, fscanf demo. Function IOErrTest and data files. Not used in lecture.
ForcedErrors Simple try-catch and exception examples that leave exceptions available in workspace. ForcedError.m and ForcedError2.m.
ExceptionExample Fairly complete error handling example. Demonstrates error, assert, throw, MException and addCause. ExceptionExample.m script and supporting functions and data files.
FunctionHandles Sample function for function handles and CancelCells function that demonstrates persistent variables.
z2g Zip2Grade.m script and configure file. Use for Matlab Compiler demonstration and by students to combine their source code and documentation files into a single archive to be submitted for grading.
   
   

Send comments and suggestions about this page to: Dr. Charles S. Tritt
This page last updated 1/3/12