Azzera filtri
Azzera filtri

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

8 visualizzazioni (ultimi 30 giorni)
Raghav Moyade
Raghav Moyade il 5 Mar 2016
Risposto: Ugur Keskin il 19 Set 2017
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.

Risposte (1)

Ugur Keskin
Ugur Keskin il 19 Set 2017
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.

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by