extrapolate data to cross x axis
Ältere Kommentare anzeigen
I have this curve and need to extrapolate it so both ends cross x axis, I have used Vq = INTERP1(X,V,Xq,'linear",'extrap') and tried other 'method's but it did not look "good".
any suggestions how to do it nicely? thanks.
Akzeptierte Antwort
Weitere Antworten (2)
Max Heimann
am 18 Jan. 2022
Bearbeitet: Max Heimann
am 18 Jan. 2022
0 Stimmen
In order for this question to be answered you should define what you mean by "nice". Unfortunately your code sample is not runable with the given workspace. But if it were it would still be unclear what would need to change for you to have an acceptable curve.
You could try polyfit and polyval to generate a polynomial which matches your data and then extrapolate by evaluating it outside of your datapoints. This works best if you have some idea how your curve should look like outside of your existing datapoints.
Asliddin Komilov
am 18 Jan. 2022
0 Stimmen
1 Kommentar
Star Strider
am 18 Jan. 2022
As always, my pleasure!
Kategorien
Mehr zu Fit Postprocessing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!