How do you speed up the image command?

조회 수: 2 (최근 30일)
David Koenig
David Koenig 2013년 5월 5일
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

채택된 답변

Image Analyst
Image Analyst 2013년 5월 6일
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
David Koenig
David Koenig 2013년 5월 6일
Thanks, Image Analyst. Yes, I used open, not image.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by