Info

This question is closed. Reopen it to edit or answer.

Using TriScatteredInterp with 3 known data points

1 view (last 30 days)
Chris
Chris on 18 Aug 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
I am working on making a visualization program to look at time series data. I am currently trying to use TriScatteredInterp to look at the interpolated data in a 2-d plane with 3 known points at each time step. I have set up a meshgird in the shape of a square that covers the area when my known data is. My data points are in the shape of a triangle, and there location stays constant throughout time. The issue I am running into is
??? Error using ==> TriScatteredInterp Input data point locations have invalid dimension.
From what I can tell so far is that I am improperly feeding the data into TriScatteredInterp.
Here is my code for the TriScatteredInterp for loop
for i=1:insizer;
data=TriScatteredInterp(x,y,INFILE(i,:));
end
insizer represents the number of rows in my input data. x and y are files that I have inputted with the coordinates. Each data point has a corresponding x and y. INFILE is the data file which is a matrix 3 columns by 2537 rows.
So the question that I have is what is the best way to feed the data into TriScatteredInterp? Or should I be using a different function?

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!