How do you speed up the image command?

2 Ansichten (letzte 30 Tage)
David Koenig
David Koenig am 5 Mai 2013
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

Akzeptierte Antwort

Image Analyst
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.
  1 Kommentar
David Koenig
David Koenig am 6 Mai 2013
Thanks, Image Analyst. Yes, I used open, not image.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by