2nd interpolation of irregular data
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
I am trying to interpolate 2-dimensional data to a regular grid. The data comes from a radar wind profiler. I have one file with time since the beginning of the day in seconds, another file with a 2D array of heights of the return signal for each timestep, and a third file with a 2D array of the signal-to-noise ratio at each height and time.
Both the times and heights are irregularly spaced. For instance, the timestep varies between 25 and 35 seconds. In addition, the heights are different at different timesteps. One time may have the lowest height at 120 meters, and the next will be at 150 meters.
I am having difficulty figuring out how to interpolate this data to a 2D grid in Matlab. I've looked at the griddata fuction, and it seems that it only wants to accept the input data as vectors of x,y, and z. In my case, these would be time, height, and SNR. However, I can't pass vectors to this function, since the heights are different at each timestep (which are irregularly spaced themselves). I'd appreciate any suggestions.
0 Kommentare
Antworten (1)
Honglei Chen
am 28 Okt. 2011
Hi Scott,
You can use TriScatteredInterp to do this.
doc TriScatteredInterp
HTH
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interpolation 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!