How to interpolate this variable
Info
This question is closed. Reopen it to edit or answer.
Show older comments
The calculation of my program gives out a variable 190*40
I want to interpolate it to 190*400
how can i do it?
Answers (1)
Read about interp2., imresize.
Le A be your 190*40 variable.
B = imresize(A,[190 400]) ;
B(B==0) = NaN ;
pcolor(B')
shading interp
caxis([1 5])
4 Comments
Shubham Mohan Tatpalliwar
on 13 Mar 2019
KSSV
on 13 Mar 2019
What I have given does the same. It is interpolation.
Shubham Mohan Tatpalliwar
on 13 Mar 2019
KSSV
on 13 Mar 2019
try with interp2.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!