my plot won't show graph
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Shahadat Hossain
el 23 de Ag. de 2021
Comentada: Adam Danz
el 30 de Ag. de 2021
t=12:0.01:12;
x=sin(t);
plot(t,x)
0 comentarios
Respuesta aceptada
Adam Danz
el 23 de Ag. de 2021
Editada: Adam Danz
el 27 de Ag. de 2021
That's because there's only 1 point and it takes >=2 points to form a line. By default, plot() does not show markers, only lines.
The reason there is only 1 point is because there is only 1 value in t:
t=12:0.01:12
x=sin(t);
plot(t,x, 'o-')
2 comentarios
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!