Error in saveas, can't create png files
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Les Beckham
am 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 Kommentare
Siehe auch
Kategorien
Mehr zu Printing and Saving finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!