How comparing vectors defined in different ranges?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
exto
le 13 Avr 2017
Réponse apportée : Star Strider
le 13 Avr 2017
Hi! I'm writing a script to extract a laser profile from an image and make some measures. I have two different vectors: first one with my model and a second one with the laser relief.
The two vectors have different lenghts and their x-values are different, but defined in the same range [0,200] (measures are in mm).
There is a way to compare the two vectors and compute the offset error from each others, or there is a better way to do that? Functions as intersect and ismember doesn't work for me, because x-values are double and the two vectors have null intersection.
Thanks
0 commentaires
Réponse acceptée
Star Strider
le 13 Avr 2017
If your data are relatively smooth, consider using the interp1 function to interpolate to get common y values for both at the same defined x values.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Interpolation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!