How to interpolate between values in columns of an array without a for loop
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bruce Elliott
am 11 Jan. 2023
Bearbeitet: Matt J
am 11 Jan. 2023
I have an n-by-1 vector of x values and an n-by-m array of y values. I would like to get m interpolated y values for an arbitrary value in the range of the given x vector.
Can this be done as an array operation? It feels wrong to use a for-loop in Matlab to step through the columns of an array.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!