Why do I get an error message for below code? Output argument "C" not assigned?
Mostrar comentarios más antiguos
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);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Instrument Control Toolbox Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!