Why export_fig won't work if code is run automatically?
Ältere Kommentare anzeigen
Hi, I've created a script that will update graphs every hour and save them as .jpgs using export_fig. When I manually run the script, it all goes smoothly, but when I use a c-shell to run MATLAB, the .jpg created is scrunched with no plot (only the title and axis labels are there). My .csh looks like this:
#! /bin/csh
matlab -nodisplay -nodesktop -r "run /home/mmateling/realtime/capebird.m"
So the script runs, with no errors, but there must be something wrong with the way my .csh script runs and the export_fig code. I am by no means a unix or matlab expert, so any help would be greatly appreciated!
Akzeptierte Antwort
Weitere Antworten (1)
Sean de Wolski
am 10 Jan. 2014
Bearbeitet: Sean de Wolski
am 10 Jan. 2014
1 Stimme
Did you drawnow() before exporting/printing?
2 Kommentare
Marian
am 13 Jan. 2014
Sean de Wolski
am 13 Jan. 2014
Well you could vote for 'em both :)
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!