MATLAB Answers

0

How to change a 3 dimensional matrix to 2 dimensinal?

Asked by Shilpesh on 8 Feb 2017
Latest activity Commented on by Shilpesh on 8 Feb 2017
Hello, I have a matrix of size 1x512x512.... I need to convert it to 2 dimensional form of 512x512, for using imagesc... Can anyone help?
Thanks

  0 Comments

Sign in to comment.

1 Answer

Answer by Thibaut Jacqmin on 8 Feb 2017
 Accepted Answer

If A is your matrix, you can use
squeeze(A)

  1 Comment

Sign in to comment.