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

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.

Antworten (1)

Ugur Keskin
Ugur Keskin am 19 Sep. 2017

0 Stimmen

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.

Kategorien

Mehr zu Modeling finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 5 Mär. 2016

Beantwortet:

am 19 Sep. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by