Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

why my plot not being displayed?

1 visualización (últimos 30 días)
lakshmi priya althuru
lakshmi priya althuru el 16 de Jul. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
even when i run simple code like plot(x,y),my matlab is not displaying the figure.it is giving empty fig window.
  2 comentarios
madhan ravi
madhan ravi el 16 de Jul. de 2019
can you show the relevant part of the code?
Walter Roberson
Walter Roberson el 16 de Jul. de 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.

Respuestas (2)

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

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by