Basic MATLAB, Simulink, and Stateflow

Appendix C: MATLAB, Simulink, and Stateflow Quick Reference Guide

Here is a quick reference guide to frequently used MATLAB , Simulink , and Stateflow commands.

Functions (Categorical List)

Basic Information

disp

Display text or array

display

Overloaded method to display text or array

isempty

Determine if input is empty matrix

isequal

Test arrays for equality

isequalwithequalnans

Test arrays for equality, treating NaNs as equal

isfloat

Determine if input is floating-point array

isinteger

Determine if input is integer array

islogical

Determine if input is logical array

isnumeric

Determine if input is numeric array

isscalar

Determine if input is scalar

issparse

Determine if input is sparse matrix

isvector

Determine if input is vector

length

Length of vector

ndims

Number of dimensions

Operators

+

Addition

+

Unary plus

-

Subtraction

-

Unary minus

*

Matrix multiplication

?

Matrix power

\

Back slash or left matrix divide

/

Slash or right matrix divide

'

Transpose

.'

Nonconjugated transpose

.*

Array multiplication (element-wise)

. ?

Array power (element-wise)

.\

Left array divide (element-wise)

./

Right array divide (element-wise)

Operations and Manipulation

: (colon)

Create vectors, array subscripting, and for loop iterations

accumarray

Construct an array with accumulation

blkdiag

Block diagonal concatenation

cast

Cast variable to different data type

cat

Concatenate arrays along specified dimension

cross

Vector cross product

cumprod

Cumulative product

cumsum

Cumulative sum

diag

Diagonal matrices and diagonals of matrix

dot

Vector dot product

end

Indicate last index of array

find

Find indices of nonzero elements

fliplr

Flip matrices left-right

flipud

Flip matrices up-down

flipdim

Flip matrix...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: CCD Image Sensors
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.