How to use integral in matlab function block in simulink
Mostra commenti meno recenti
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)
Walter Roberson
il 28 Lug 2016
0 voti
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
michael maccarthy
il 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.
Categorie
Scopri di più su Event Functions in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!