MATLAB Answers

0

How to interpolate this variable

Latest activity Commented on by KSSV
on 13 Mar 2019
The calculation of my program gives out a variable 190*40
I want to interpolate it to 190*400
how can i do it?

  0 Comments

Sign in to comment.

1 Answer

KSSV
Answer by KSSV
on 13 Mar 2019
Edited by KSSV
on 13 Mar 2019

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

Show 1 older comment
KSSV
on 13 Mar 2019
What I have given does the same. It is interpolation.
But the values i have seen do not match
KSSV
on 13 Mar 2019
try with interp2.

Sign in to comment.