View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
Control flow (for – end, while – end, if – else – elseif – end, switch
Introduction to GUI
Introduction to Image processing Toolbox
MATLAB Environment Command window Use Menus as an alternative to typing some commands Use of Toolbar for easy access to popular operations Status bar Command window Status of Caps, Num, and Scroll locks New M-file Open file Undo New Simulink Model Help Cut Paste Copy Workspace Browser Path Browser
MATLAB Environment Workspace Open the selected matrix Delete the selected matrix from the workspace Displays the total number of elements in the workspace and total size of them. Close the workspace browser size of the matrix Number of bytes in the matrix Name of the matrix Type of the matrix
MATLAB Environment Workspace Name of the matrix Current dimension of the matrix: User can change the dimensions of the matrix by simply type the dimensions he/she want Current Cell Current values: User can change the values o the matrix’s element by editing in the cell.
MATLAB Environment Path browser The current Directory The directories in the path The Files in the selected path. Add a new path Remove the selected path
MATLAB Environment Editor window Current line number Automatic Indenting Automatic Color Highlighting to Distinguish Different Elements The toolbar Names of the opened files in the editor New file Save file Copy Print Set/Clear break point Step in Continue List if functions in call stack Open file Cut Paste Help Clear all break points Single step Quit debugging
MATLAB Environment Figure window New figure Open an exciting figure Save the current figure Print Zoom the plot Rotate the plot Start / End the plot editor mode Draw an arrow in the plot Type a text in the plot Draw a line in the plot
Basic Functions load save lookfor help whos who clear clc Function name Loading saved workspace Saving workspace Search for a word in MATLAB files Show information about any function Show workspace in details Show workspace Clear workspace Clear the command window Function mean
Variables The number of output parameters nargout The number of input parameters nargin Maximum real number = 10 308 × 1.7977 realmax Minimum real number = 10 -308 × 2.2251 realmin When the result = 0/0 NaN Very large value = ∞ as the result of (1/0) inf Very small value eps Pi = 3.14 pi Default function output ans
Relational and Logical Operators logical exclusive or xor logical not ~ not logical or | or logical and & and Logical Operators greater than or equal >= ge less than or equal <= le greater than > gt less than < lt not equal ~= ne equal = = eq Comment Symbol Operator name Relational Operators
Math functions rem ceil floor round fix Approximation functions sph2cart deg2rad rad2deg base2dec pol2cart cart2pol cart2sph bin2dec hex2dec dec2base dec2bin dec2hex conversion functions tanh sinh cosh acot asec rem ceil floor real imag conj angle abs cos abs complex functions acsc sort cot min sec max csc exp atan log10 asin log acos power tan mean sin sqrt triangular functions Basic functions