Find x-value of cfit function.
8 次查看(过去 30 天)
显示 更早的评论
Good day, I am trying to find the x-value of a cfit function with a known y-value. I am however struggling as the solve() function doesn't work on the cfit function. I have tried:
g=fit(t,w,'cubicinterp');
plot(g,t,w);
syms tx;
Point=w(1)*0.37;
eqn=Point==g(tx);
solve(eqn,tx);
Where t and w are both 49x1 matrices. I then got the functin g along with the datapoints and plotted them as follows:
If anyone can help me determine the x value for given y-value of the 'g' function help would be much appreciated! Thanks in advance!
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!