Finding a value on a plot using code?
Afficher commentaires plus anciens
So I am plotting 2 matrices on a graph and need to find the values of time when the vout is at 90% and 10%, as vout is 1v I need the values of time when vout = 0.9 and vout = 0.1 but my matrix does not have absolute values at these points. Is there anyway I can just use the curve of best fit's value in the code?
I.E
matrix 1 - Vout = 1, 0.95, 0.92, 0.89, 0.82 need time value at 0.9v
matrix 2 - Time = 1, 2 , 3 , 4 , 5
Réponses (1)
dpb
le 15 Mar 2016
Inverse interpolation...
>> Vout = [1, 0.95, 0.92, 0.89, 0.82];
>> Time = 1:5;
>> T90=interp1(Vout,Time,0.90)
T90 =
3.6667
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!