How to interpolate this variable

The calculation of my program gives out a variable 190*40
I want to interpolate it to 190*400
how can i do it?

Respuestas (1)

KSSV
KSSV el 13 de Mzo. de 2019
Editada: KSSV el 13 de Mzo. de 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 comentarios

Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar el 13 de Mzo. de 2019
May be i have explained it wrong because i dont want to extrapolate.
the values in colums are in a distance of 10 like 190*1:10:400
And now i want the values of points in between
The value of 40th point is equal to value of 400th point
KSSV
KSSV el 13 de Mzo. de 2019
What I have given does the same. It is interpolation.
Shubham Mohan Tatpalliwar
Shubham Mohan Tatpalliwar el 13 de Mzo. de 2019
But the values i have seen do not match
KSSV
KSSV el 13 de Mzo. de 2019
try with interp2.

La pregunta está cerrada.

Etiquetas

Preguntada:

el 13 de Mzo. de 2019

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by