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

18 visualizaciones (últimos 30 días)
I can`t find the fnc

Respuestas (2)

Jonas
Jonas el 7 de Abr. de 2021
Editada: Jonas el 7 de Abr. de 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 el 7 de Abr. de 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.

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by