I am not getting a graph when I use mesh

4 vues (au cours des 30 derniers jours)
bsd
bsd le 17 Août 2011
Dear sir/madam,
When I use mesh() or surf() to plot the graph, I am not getting any graph. It displays only the co-ordinate axes, and nothing in it. It will be totally blank. I am unable to find out the reason for this. Looking forward to hearing from you soon.
Thanking you, BSD

Réponses (1)

Walter Roberson
Walter Roberson le 17 Août 2011
If you were somehow accidentally submitting only a single point to mesh() or surf() then your graph might look blank.
Have you tried tests such as surf(rand(50,50))
  1 commentaire
Sean de Wolski
Sean de Wolski le 17 Août 2011
Or if the matrix is all(nan)

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by