Azzera filtri
Azzera filtri

simple matlab function (simulink) with if?

1 visualizzazione (ultimi 30 giorni)
SimTec
SimTec il 12 Nov 2019
I have written the very basic MAtlab function on matlab and would like why I am getting this error:
function [pos, neg] = select_output(err)
% if the error is negative , flow through the PID designed for negativ
% errors otehrwise positiv
if err >= 0
pos=err;
else
neg=err;
end
matlabfunction.PNG

Risposte (0)

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