where is function block parameters:fcn that expression ex) sin(u(1))+cos(u(1))
3 次查看(过去 30 天)
显示 更早的评论
回答(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!