Why don't I see the graph? [No Graph visible in figure window without '+' or '.' argument]
Mostrar comentarios más antiguos
The file that is attached is an attempt on simulating a swing-by. However all I get at the end is an empty figure window.
Funnily enough I am able to see the graphs when I add a marker like '+' or '.' to my plot, so they get simulated at least. Leaving the LineSpec out of the plot or adding a Line-Style like '-' or '--' will result in an invisible graph.
It seems to run on the computer of my teacher but not on my macbook pro nor on my desktop pc. He is using a very old version of Matlab and I am currently on R2015b.
EDIT: I changed the description of my problem slightly.
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 29 de Nov. de 2015
0 votos
Try moving the "hold on" to after the first plot3()
In R2014b and later, "hold on" becomes the same as "hold all", but that can have the effect of freezing the axes limits, so if you "hold on" before you have plotted anything then you might not be able to see the output.
1 comentario
Andreas Gschwendtner
el 29 de Nov. de 2015
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

