How to use integral in matlab function block in simulink

I have an expression for the local force of a wing cross-section of an airplane at position 'r' in matlab function block and this force depends on the simulation output every loop (changes every loop). How to use symbolic expression for the force with parameter 'r' to numerically integrate the local force over the whole wing wrt 'r'.

Risposte (1)

The Symbolic Toolbox is not supported in MATLAB Function blocks, as those blocks invoke code generation and the Symbolic Toolbox cannot generate code.
You will need to rewrite the symbolic expression in terms of numeric expressions. Depending on the expression, it might help to use matlabFunction to generate a MATLAB function in a file, and then adapt the code in the file.

1 Commento

Draw the Simulink model for the following equation and simulate them for 20s. With the help of the “To Workspace” box under sink library, plot the output graph versus the input graph under Matlab with the following details: provide xlabel, ylabel, title and legend.

Accedi per commentare.

Categorie

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by