why my plot not being displayed?
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
even when i run simple code like plot(x,y),my matlab is not displaying the figure.it is giving empty fig window.
2 commentaires
madhan ravi
le 16 Juil 2019
can you show the relevant part of the code?
Walter Roberson
le 16 Juil 2019
Do your x and y have more than one finite point? If x and y are scalar, by default MATLAB does not provide any markers for the points.
Réponses (2)
Jan
le 16 Juil 2019
Try
plot(x, y, 'o')
to check, if x and/or y are scalars, which plot infinitesimal small dots only.
Star Strider
le 16 Juil 2019
0 votes
If your code involves array division, remember to use element-wise division: ./ rather than /.
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!