Why do I get an error message for below code? Output argument "C" not assigned?
Ältere Kommentare anzeigen
The argument "C" definitely is assigned!!
function [ C ] = C_Stumpf(z)
if z > 0
C = 1;
elseif z < 0
C = -1;
elseif Z == 0
C = 0;
end
end
clear
clc
z = -50 : .1 : 500;
f = C_Stumpf(z);
plot(z,f);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Instrument Control Toolbox Supported Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!