How do you speed up the image command?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!