Find a a value from a graph that is not in the array using reciprocal fit

4 次查看(过去 30 天)
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);

采纳的回答

Torsten
Torsten 2022-8-28
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)
f1 = 0.3875

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operators and Elementary Operations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by