How do I use a cfit or very small numbers in a simulink matlab function?

5 views (last 30 days)
I am trying to use a cfit (2. polynominal) in a simulink matlab function. A simple From Workspace block for the Coefficients does not work , because one Coefficient is too small (e-12). Any ideas?
Reading Coefficients from file works but increases execution time by factor 4.

Accepted Answer

Tobias Held
Tobias Held on 6 Jan 2022
Use cfit see this answer.
Alternativly make a normalized fit and edit the createFit function like I answered here

More Answers (0)

Categories

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

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!