Find a a value from a graph that is not in the array using reciprocal fit
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
This is my code. So I plotted t1 and n and now I need to find the reciprocal and with the reciprocal find the t1 value of n=0.653. But at the end I am just getting an empty array.
t1= [6.22 3.59 2.68 2.53 2.19 1.82];
n= linspace(0.60,0.70,6);
plot(n,t1,"g")
hold on
p= polyfit(n,t1,1);
f1= polyval(1./p,n);
plot(n,f1)
index = find(n==0.653);
f1_point= f1(index);
0 Commenti
Risposta accettata
Torsten
il 28 Ago 2022
t1= [6.22 3.59 2.68 2.53 2.19 1.82];
n= linspace(0.60,0.70,6);
f1 = interp1(n,1./t1,0.653)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Operators and Elementary Operations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!