indicating real value or interpolated (estimated) values after interpolation by comparing with original data

2 views (last 30 days)
Hi, I have data that contains one columns for time and some columns for values of some variables the same as following (this is a part of my data):
A=[ 29/07/2014 08:00:00.000 152 28 2;
29/07/2014 08:02:01.000 100 20 8;
29/07/2014 08:07:00.000 201 45 7;
29/07/2014 08:08:03.000 149 23 6
29/07/2014 08:10:00.000 169 21 3]
After using interpolation (griddedInterpolant), I have calculated the value of each variable at desired time the same as following:
F=[29/07/2014 08:00:00.000X1 Y1 Z1;
29/07/2014 08:05:00.000X2 Y2 Z2;
29/07/2014 08:10:00.000X3 Y3 Z3];
I know that the values (X1 Y1 Z1) and (X3 Y3 Z3) are equal to the real values in matrix A but (X2 Y2 Z2) are estimated or resulted from interpolation. I want to add a column after column related to time in order to indicate which data is real and which data is estimated (interpolated), for example the same as below:
F=[29/07/2014 08:00:00.000’ ‘realX1 Y1 Z1;
29/07/2014 08:05:00.000’ ‘interpolatedX2 Y2 Z2;
29/07/2014 08:10:00.000’ ‘realX3 Y3 Z3];
Would you please help me how can I do this?

Accepted Answer

Image Analyst
Image Analyst on 30 Mar 2015
I'd try experimenting with ismember() to see if F{:, 1} is within A{:,1}. Then if the first columns match, then see if the x, y, and z values are reasonably close to each other.

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!