Error in saveas, can't create png files
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
When I type saveas (gcf, 'test.png') I get the following error messages..
Error using print (line 82) Index exceeds matrix dimensions.
Error in saveas (line 168) print( h, name, ['-d' dev{i}] )
This was the first example on the help page of how to use saveas. I'm running Matlab 2017a. Does anyone know what is going on here?? Any help would be appreciated.
0 commentaires
Réponses (1)
Les Beckham
le 9 Mai 2017
It looks like you may have another function or variable that is 'shadowing' the built-in print function.
Try 'which -all print' at the command line and make sure that it is pointing to the Matlab print function and not a variable or some other function.
0 commentaires
Voir également
Catégories
En savoir plus sur Printing and Saving 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!