Weird plot axis range and ticks
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
Just a quick question, I intended to compare numerical solutions and analytical solutions of a system. I plot them. But, the y-axis range is suspicious. Please see below plot.

Do you have any idea why Matlab doing this. I guess, the difference between two axis ticks is smaller than 10^(-4), that is why it did not include those 10^(-4) part. Am I right?
Réponse acceptée
Star Strider
le 12 Oct 2016
It probably is. Instead of num2str, use sprintf.
Experiment with the format descriptor string to get the result you want.
9 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
