How do you speed up the image command?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using Matlab for a presentation.
I construct an "overhead" by
fh=figure;
set(fh2,'Position',desiredpositionvector)
axis([0 100 0 100])
text(1,95,'This is the title line','FontSize',20)
text(1,80,'This is the second line on the overhead','FontSize',14)
.... This is crude but effective. Is there another way to do this with a little more style?
I am also presenting graphs using plot3. I find that actually constructing the figure in real time for the presentation is quicker than using image to load a previously saved figure. Does this make sense and if not is there a way to speed up the loading of the image?
I use
open('figureName.fig')
set(gcf,'Position',pos1)
to load the image.
Thanks,
Dave
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Mai 2013
Your second example used open(), not image(). If you would use image, it would have to call figure and then have to create an axes control on the figure to stick an image into. And not sure what fh2 is, but hey, whatever works. If you really need speed, then run your script before your presentation begins, because my scripts always run faster the second and subsequent times than they did the first time.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!