Curve won't graph using plot function
Mostrar comentarios más antiguos
The curve for the equation y = ((sin(x)-x)/sin(x)) will not show up on the graph and I don't know why it is not working. The subplot is supposed to have both the curve described by y above and the line x = x. Here is my code:
x= 0:1;
y2= x;
y4= ((sin(x) - x) / sin(x));
subplot(1, 3, 3);
plot(x, y4, x, y2);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 2-D and 3-D Plots 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!