MATLAB Answers

where is function block parameters:fcn that expression ex) sin(u(1))+cos(u(1))

11 views (last 30 days)
희만 한
희만 한 on 7 Apr 2021
Answered: Fangjun Jiang on 7 Apr 2021
I can`t find the fnc

Answers (2)

Jonas
Jonas on 7 Apr 2021
Edited: Jonas on 7 Apr 2021
Apparently the Fcn block is now considered obsolete and not recommended for usage, see its documentation. It has been removed from the Simulink Library Browser since R2020b. MathWorks recommends using a MATLAB Function block. This block is indeed able to suit the same purpose. Albeit maybe a bit more cumbersome for the user in my opinion.
Models built in R2020a or before using the 'Fcn' block will still work in R2020b or later. The 'Fcn' block has just been removed from the Library Browser such that people will not find it and will not use it anymore. However, the block may get removed in the future altogether.

Fangjun Jiang
Fangjun Jiang on 7 Apr 2021
I heard it was being phased out. I don't remember which version. You probably can search it in release note.
It will be not available in the library in new version of MATLAB. But if it exists in a model from old version of MATLAB, it still works after the model is opened in the new version of MATLAB. You could copy and paste if you have to use it.
You could use MATLAB Function block instead.
Again, for now, it is just not available for drag and drop from the library. It is a way that Mathworks tries to guide you away from using it.

Tags

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!