Interpolating various dimension matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Ali Sotoudeh
el 27 de Dic. de 2021
Comentada: Ali Sotoudeh
el 28 de Dic. de 2021
Hello I want to interpolating between variables as below: x=matrix with 2×54 dimension and y=matrix with 1×54 dimension and x_q=matrix or vector with 2×1 dimension. Is it possible to use interp1 or interp2 functions?
0 comentarios
Respuesta aceptada
Torsten
el 27 de Dic. de 2021
F = scatteredInterpolant(x(1,1:54),x(2,1:54),y(1,1:54));
y_q = F(x_q(1),x_q(2))
Más respuestas (1)
Sulaymon Eshkabilov
el 27 de Dic. de 2021
If understood your question correctly, in this case - you're trying to interpolate with 1-by-54 of y using 2-by-54 of x. if this is the case, you'd need to have matched sizes for x and y. Otherwise, it does not make quite much of a sense.
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!