How to put "error function, erf(x)" in simulink

조회 수: 6 (최근 30일)
Raghav Moyade
Raghav Moyade 2016년 3월 5일
답변: Ugur Keskin 2017년 9월 19일
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.

답변 (1개)

Ugur Keskin
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.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by