Presentation is loading. Please wait.

Presentation is loading. Please wait.

Yang-Ming University, Taipei, Taiwan

Similar presentations


Presentation on theme: "Yang-Ming University, Taipei, Taiwan"— Presentation transcript:

1 Yang-Ming University, Taipei, Taiwan
Arrays and Matrices

2 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

3 fliplr permute Flip array left to right Syntax
B = fliplr(A) Rearrange dimensions of N-D array Syntax B = permute(A,order)

4 reshape Reshapes array Syntax B = reshape(A,sz)
B = reshape(A,sz1,...,szN)

5 squeeze Removes singleton dimensions Syntax B = squeeze(A)

6 Thank you for your attention!!


Download ppt "Yang-Ming University, Taipei, Taiwan"

Similar presentations


Ads by Google