resizing a matrix to a target size

1 visualizzazione (ultimi 30 giorni)
Maryam
Maryam il 24 Giu 2015
Risposto: Jan il 2 Lug 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

Risposte (2)

Jan
Jan il 2 Lug 2015
What about imresize?

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

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by