Yang-Ming University, Taipei, Taiwan Arrays and Matrices
Useful Functions of Arrays and Matrices Codes Function fliplr Flips matrix from left to right flipud Flips matrix up to down permute Rearranges dimensions of N-D array repmat Replicates and tile array reshape Reshapes array rot90 Rotates matrix 90 degrees squeeze Removes singleton dimensions diag Create diagonal matrix or get diagonal elements of matrix tril Lower triangular part of matrix triu Upper triangular part of matrix
fliplr permute Flip array left to right Syntax B = fliplr(A) Rearrange dimensions of N-D array Syntax B = permute(A,order)
reshape Reshapes array Syntax B = reshape(A,sz) B = reshape(A,sz1,...,szN)
squeeze Removes singleton dimensions Syntax B = squeeze(A)
Thank you for your attention!!