Plotting missing data in MUPAD

1 visualización (últimos 30 días)
Rock
Rock el 7 de Jul. de 2017
Comentada: Rock el 17 de Jul. de 2017
Simple question: I want to plot a list with missing data, i.e. where data is missing, I don't want anything plotted there, I want a gap in the point series. This works: plot(plot::PointList2d([[1,2],[2,4],[3,3],[4,2]])). However, this doesn't: plot(plot::PointList2d([[1,2],[2,4],[3,NaN],[4,2]])). Thank you!!

Respuestas (1)

Sally Al Khamees
Sally Al Khamees el 13 de Jul. de 2017
Hey Rock,
NaN does not work with MuPad.
Here is link that describes the differences in syntax between MuPad and ML:
I also also suggest using live scripts instead of MuPad
  1 comentario
Rock
Rock el 17 de Jul. de 2017
Hi Sally, many thanks. I tried 'plot(plot::PointList2d([[1,2],[2,4],[3,undefined],[4,2]]));' as your link suggests, but it still doesn't work: it does not give an error message now, but strangely it does not plot anything either; when I run it, nothing happens... Any idea?

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by