Réponse acceptée

Adam Danz
Adam Danz le 23 Août 2021
Modifié(e) : Adam Danz le 27 Août 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
t = 12
x=sin(t);
plot(t,x, 'o-')

2 commentaires

Shahadat Hossain
Shahadat Hossain le 28 Août 2021
thanks a lot adam i am student currently studying signal system and trying to understand matlab
Adam Danz
Adam Danz le 30 Août 2021
Happy to help.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by