where is function block parameters:fcn that expression ex) sin(u(1))+cos(u(1))
19 ビュー (過去 30 日間)
古いコメントを表示
I can`t find the fnc
0 件のコメント
回答 (2 件)
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.
0 件のコメント
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!