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);
0 个评论
采纳的回答
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)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!