How can I do curve fitting depending in the following formula?

1 view (last 30 days)
I am doing a research and I want to do curve fitting and know the value of "V" depinding on the following function:
F(V) = (K-M*W^2)*V
K,M,W are known matrices, V is a vector and its size is 7*1
I know the 2nd, 4th and 6th values of V, and I want to know the rest values using a curve fitting depending on the above function.
Any suggestions please?
Note: I have used so many techniques of curve fitting like ploy, exp,... / Lagrange inter. / Spline ... but they didn't return the exact values that I want, that's why I want to use the above formula.
Thanks

Answers (1)

Image Analyst
Image Analyst on 4 Dec 2022
So you know K, M, W, and 3 of the 7 values of V. Can't you just multiply out all the matrices, and have the remaining values of V be unknowns. Of course you need the value of F or you can't do the fit. But then you can simply use fitlm to determine the unknown values of V.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

Categories

Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!