MATLAB Answers

resizing a matrix to a target size

10 views (last 30 days)
Maryam
Maryam on 24 Jun 2015
Answered: Jan on 2 Jul 2015
Hi all,
I have a [20500 x 41] matrix where 20500 is 500 x 41 and I want to rescale it to target size of [18271 x 121] where 18271 is 151 x 121. The mentioned matrices are the reconstruction of a 3D image and I want to have both in same size. So I want to rescale it. Can you help me regarding this?
Kind regards, Mary

  0 Comments

Sign in to comment.

Answers (2)

Mark Matusevich
Mark Matusevich on 2 Jul 2015
It might be an overkill in this case, but I think that interp2 can do the trick for you

  0 Comments

Sign in to comment.


Jan
Jan on 2 Jul 2015
What about imresize?

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

No tags entered yet.


Translated by