Evaluate surface fit in Simulink

1 visualización (últimos 30 días)
Edoardo Saudino
Edoardo Saudino el 2 de Dic. de 2021
Respondida: Andy Bartlett el 5 de En. de 2022
Hello everybody,
I am having troubles using a surface made by interpolation of experimental data in order to evaluate an output inside Simulink.
I explain myself better: I have 3 vectors made of experimental data, representing a system. Basically 2 inputs and one output. I have used the Curve Fitting tool in order to fit a surface over my experimental data so that I can evaluate my output for two given inputs. This works very well on MATLAB using the 'feval' function as below:
Output = feval(My_Experimental_Surface, Input1, Input2) %My_Experimental_Surface is an "sfit" made with the thin-plate spline interpolant method
This works fine and gives satisfactory results.
My question is: How do I implement this in a Simulink Model? I basically need a block that takes my two inputs and gives back the output as does the "feval" function on Matlab.
Thank you for your help,
Don't hesitate to ask questions if I haven't been clear.

Respuestas (1)

Andy Bartlett
Andy Bartlett el 5 de En. de 2022
Please see if the answer here helps.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by