interpolating row data in a matrix
Mostrar comentarios más antiguos
I have a large set of data that I need to linearly interpolate evenly by a factor of 22. The way that the data is organised means that the each row of data needs to be interpolated instead of each column, how do I make it so that rows of data are interpolated instead of columns?
Respuesta aceptada
Más respuestas (2)
Walter Roberson
el 15 de Oct. de 2013
newV = interp1(X, V.', newX) .';
1 comentario
Natalie
el 16 de Oct. de 2013
Youssef Khmou
el 15 de Oct. de 2013
large data means down sampling?
If it is the other case, you can interpolate row by row as in this example :
r=randn(30);
for n=1:30
G(n,:)=interp(r(n,:),22);
end
1 comentario
Natalie
el 16 de Oct. de 2013
Categorías
Más información sobre Interpolation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!