Curve fitting real functions
Ältere Kommentare anzeigen
When doing my research to see how are real functions fitted in MATLAB, no answer has been found. Only the fitting of complex functions is proposed. Why is that?
Thanks in advance :^)
8 Kommentare
Rik
am 10 Dez. 2020
What do you mean? I don't believe I have seen any complex function being fitted yet (although I don't doubt it is possible).
wallflower
am 10 Dez. 2020
Bearbeitet: wallflower
am 10 Dez. 2020
Rik
am 10 Dez. 2020
I don't have that toolbox, so I can't comment on why that is only complex-valued.
I'm much more familiar with the standard fit function. Plenty of example of real-valued functions being fitted.
I suspect the answer to your why question is the domain: I would guess the function in RF analysis are simply complex-valued by design or convention.
wallflower
am 10 Dez. 2020
Rik
am 10 Dez. 2020
I don't understand what you want well enough to be able to help you.
wallflower
am 10 Dez. 2020
riccardo
am 10 Dez. 2020
The curve fitting tool seems to have the rational function as an option.
Alternatively, you could always revert to using "fzero" or "fminsearch", by converting your problem to minimising the residuals of:
<YourFunctionR>(f) * <denominator polynomial> - <numerator polynomial> = 0
wallflower
am 4 Jan. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Interpolation 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!