Effacer les filtres
Effacer les filtres

how to find values of y for a given x when both are arrays?

7 vues (au cours des 30 derniers jours)
Hola Hola.. was wondering how to make it so, that I can know exactly the value of y for a given x when x and y are arrays. I've seen many options online but I just get an empty []. Please help. I have the graph below and want to extract the y values of all three lines (I've given only info on one of the three)along different x values, for example x=0.5, x=0.55, x=0.6, x=0.65. and y are
x=linspace(0.46,0.7,281);
y=wdth_8mm;(see attached file);

Réponse acceptée

KSSV
KSSV le 21 Oct 2020
Modifié(e) : KSSV le 21 Oct 2020
Let (x,y) be data you have. And you want to find yi for given xi. For this you have to do interpolation. Read about interp1.
yi = interp1(x,y,xi)

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays 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!

Translated by