How to put "error function, erf(x)" in simulink
6 次查看(过去 30 天)
显示 更早的评论
How to put "error function, erf(x)" in simulink for processing an input signal. I tried to formulate in "matlab functions block" but was getting error.
0 个评论
回答(1 个)
Ugur Keskin
2017-9-19
This can be done with the block 'Matlab function' which can also be found in the 'User-Defined functions' library of Simulink.
Just insert the following in the m-funtion:
function y = fcn(u)
y = erf(u);
y will be the error function of u.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!