interpolating row data in a matrix
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 15 Okt. 2013
newV = interp1(X, V.', newX) .';
1 Kommentar
Natalie
am 16 Okt. 2013
Youssef Khmou
am 15 Okt. 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 Kommentar
Natalie
am 16 Okt. 2013
Kategorien
Mehr zu Interpolation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!