Where can I find Fcn block in simulink in matlab R2022a?
Mostra commenti meno recenti
In previous realeses of Matlab there was the "Fcn" block when I used Simulink, How can I avoid this problem in Matlab R2022a?
Risposte (3)
Steven Lord
il 15 Apr 2022
1 voto
I'm guessing you want either MATLAB Function or Interpreted MATLAB Function.
6 Commenti
Adolfo Marro
il 15 Apr 2022
You can use the Interpreted MATLAB Function to achieve basically the same thing for simple inputs and static nonlinearity.
Else, you can find older version of Simulink file that contains the Fcn block. Then, copy the block to your Simulink model in R2022a.
Les Beckham
il 15 Apr 2022
Modificato: Les Beckham
il 15 Apr 2022
@Les Beckham, the Math function block has been there in the Math Operations library. @Adolfo Marro is looking for the Fcn block that was available in previous Simulink versions (I think in pre-R2020 releases).
The Fcn block comes in handy for user who wishes to quickly enter a relatively simple equation such as:
u(1) + sin(u(2))*tan(u(3)) + cos(u(2))*tan(u(3))
without pulling multiple trigonometric function blocks, product blocks and summation blocks.
Les Beckham
il 15 Apr 2022
@Sam Chak, oh, yes, I remember that block now. It has been a while since I worked with Simulink. As you said, the Interpreted Matlab Function block appears to be the replacement.
Andreas
il 12 Gen 2023
@Sam Chak But the interpreted matlab function is set to be removed in the future as well.
"The Fcn block comes in handy for user who wishes to quickly enter a relatively simple equation such as:
u(1) + sin(u(2))*tan(u(3)) + cos(u(2))*tan(u(3))"
Exactly. Any better way to achive this?
Harun GIRGIN
il 28 Nov 2022
0 voti
Thank you all and your answers. These helped a lot.
Sam Chak
il 12 Gen 2023
0 voti
You can try if the following blocks from the older release still work in your system.

Categorie
Scopri di più su Simulink in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!