indicating real value or interpolated (estimated) values after interpolation by comparing with original data
Afficher commentaires plus anciens
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.000’ X1 Y1 Z1;
‘29/07/2014 08:05:00.000’ X2 Y2 Z2;
‘29/07/2014 08:10:00.000’ X3 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’ ‘real’ X1 Y1 Z1;
‘29/07/2014 08:05:00.000’ ‘interpolated’ X2 Y2 Z2;
‘29/07/2014 08:10:00.000’ ‘real’ X3 Y3 Z3];
Would you please help me how can I do this?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Interpolation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!