Where can I find fcn block in matlab R2020b?
118 次查看(过去 30 天)
显示 更早的评论
I just downloaded matlab version 2020b and started simulink.
However I just can't find that fcn block.
Where is it in matlab version 2020b? and what is that block's name?
4 个评论
Monte
2023-4-1
What gets put into the "Matlab Function Block", y = f(x), in order to convert a continuously ramping "x" to a "y" that
ramps from 0 to 2pi and resets to 0 and rises again.
Walter Roberson
2023-4-1
Otherwise,
y = mod(x, 2*pi);
采纳的回答
Ameer Hamza
2020-10-15
From the documentation, it appears that the block has been removed from R2020b: https://www.mathworks.com/help/simulink/ref_obsolete_blocks/fcn.html. It has been depreciated for several past releases. Use the MATLAB function block: https://www.mathworks.com/help/simulink/slref/matlabfunction.html, which is much more flexible and easy to use.
9 个评论
Walter Roberson
2022-10-8
I suggest you have a look at https://www.mathworks.com/matlabcentral/answers/1653710-global-variable-in-simulink#comment_2009495 where I show how to construct Simulink global variables and parameter objects at the MATLAB level.
更多回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!