Find x-value of cfit function.

4 ビュー (過去 30 日間)
Leon Ellis
Leon Ellis 2022 年 5 月 22 日
コメント済み: Leon Ellis 2022 年 5 月 22 日
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!

採用された回答

Walter Roberson
Walter Roberson 2022 年 5 月 22 日
  1 件のコメント
Leon Ellis
Leon Ellis 2022 年 5 月 22 日
Thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by