How to use integral in matlab function block in simulink

4 views (last 30 days)
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'.

Answers (1)

Walter Roberson
Walter Roberson on 28 Jul 2016
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 Comment
michael maccarthy
michael maccarthy on 30 Nov 2020
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.

Sign in to comment.

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!