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

조회 수: 19 (최근 30일)
희만 한
희만 한 2021년 4월 7일
답변: Fangjun Jiang 2021년 4월 7일
I can`t find the fnc

답변 (2개)

Jonas
Jonas 2021년 4월 7일
편집: Jonas 2021년 4월 7일
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 2021년 4월 7일
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.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by