Error in saveas, can't create png files

2 Ansichten (letzte 30 Tage)
Tom Harvey
Tom Harvey am 8 Mai 2017
Beantwortet: Les Beckham am 9 Mai 2017
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.

Antworten (1)

Les Beckham
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.

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by