Why program shows Unrecognized function or variable 'g'.
Mostrar comentarios más antiguos
% legend() function
x = 0:0.5:4*pi;
y = sin(x);
h = cos(x);
w = 1./(1+exp(-x));
plot(x,y,'bd-',x,h,'g:',x,w,'ro-',x,g,'c^-');
legend('sinx','cos(x)','Sigmoid','Gaussn function');
% when i run program, it shows that Unrecognized function or variable 'g'.
% while there are g function on mathwork in Two-dimensional line plot module
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Mathematics 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!