i have two array x=[1 6 8 9],y=[3 6 9 14],then i plot (x,y) in matlab. i have no linear equation of x,y. i have only above array of x and y. if value of x is 4 then what is the value of y.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i have two array x=[1 6 8 9],y=[3 6 9 14],then i plot (x,y) in matlab. i have no linear equation of x,y. i have only above array of x and y. if value of x is 4 then what is the value of y.
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 29 Nov 2012
Modifié(e) : Azzi Abdelmalek
le 29 Nov 2012
x=[1 6 8 9]
y=[3 6 9 14]
x0=4
y0=interp1(x,y,x0)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!