Info

This question is closed. Reopen it to edit or answer.

How to interpolate this variable

1 view (last 30 days)
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar on 13 Mar 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
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)

KSSV
KSSV on 13 Mar 2019
Edited: 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
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar on 13 Mar 2019
But the values i have seen do not match
KSSV
KSSV on 13 Mar 2019
try with interp2.

Community Treasure Hunt

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

Start Hunting!