MATLAB Answers

why my plot not being displayed?

1 view (last 30 days)
lakshmi priya althuru
lakshmi priya althuru on 16 Jul 2019
Answered: Star Strider on 16 Jul 2019
even when i run simple code like plot(x,y),my matlab is not displaying the figure.it is giving empty fig window.

  2 Comments

madhan ravi
madhan ravi on 16 Jul 2019
can you show the relevant part of the code?
Walter Roberson
Walter Roberson on 16 Jul 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.

Sign in to comment.

Answers (2)

Jan
Jan on 16 Jul 2019
Try
plot(x, y, 'o')
to check, if x and/or y are scalars, which plot infinitesimal small dots only.

  0 Comments

Sign in to comment.


Star Strider
Star Strider on 16 Jul 2019
If your code involves array division, remember to use element-wise division: ./ rather than /.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags