I can't really find why matlab won't plot this equation, I run into an error as soon as i try to run it
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Patrick
el 1 de Mzo. de 2024
Respondida: Dyuman Joshi
el 1 de Mzo. de 2024
x = 0 : 0.01 : 10 ;
y= ((exp(-0.5.*x))*(4-x))-2;
% Now, plot the f(x) -> x:
plot(x, y)
% Set axes labels:
xlabel('x')
ylabel('y')
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!