Why don't I see the graph? [No Graph visible in figure window without '+' or '.' argument]
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 29 Nov 2015
0 votes
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 commentaire
Andreas Gschwendtner
le 29 Nov 2015
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

