Function Reference: Volume 2 (F-O) - The MathWorks - #501

/ 1568


catalogue search
P. 501
P. 502
P. 503
P. 504
P. 505
P. 506
P. 507
P. 508
P. 509
P. 510
P. 511
P. 512
P. 513
P. 514
P. 515
P. 516
P. 517
P. 518
P. 519
P. 520
P. 521
P. 522
P. 523
P. 524
P. 525
P. 526
P. 527
P. 528
P. 529
P. 530
P. 531
P. 532
P. 533
P. 534
P. 535
P. 536
P. 537
P. 538
P. 539
P. 540
P. 541
P. 542
P. 543
P. 544
P. 545
P. 546
P. 547
P. 548
P. 549
P. 550


See other catalogues for The MathWorks

Text version of the page
getframe
end
movie(F)
If you are capturing frames of a plot that takes a long time to generate or are repeatedly calling getframe in a loop, make sure that your computer's screen saver does not activate and that your monitor does not turn off for the duration of the capture; otherwise one or more of the captured frames can contain graphics from your screen saver or nothing at all.
Note In situations where MATLAB® software is running on a virtual desktop that is not currently visible on your monitor, calls to getframe will complete, but will capture a region on your monitor that corresponds to the position occupied by the figure or axes on the hidden desktop. Therefore, make sure that the window to be captured by getframe exists on the currently active desktop.
Capture Regions
Note that F = getframe returns the contents of the current axes, exclusive of the axis labels, title, or tick labels. F = getframe(gcf) captures the entire interior of the current figure window. To capture the figure window menu, use the form F = getframe(h,rect) with a rectangle sized to include the menu.
Resolution of Captured Frames
The resolution of the framed image depends on the size of the axes in pixels when getframe is called. As the getframe command takes a snapshot of the screen, if the axes is small in size (e.g., because you have restricted the view to a window within the axes), getframe will capture fewer screen pixels, and the captured image might have poor resolution if enlarged for display.
Capturing UIControls and Information Bars
If your figure contains uicontrols or displays the linking and brushing message bar along its top, F = getframe(figure_handle) captures
2-1445

pageCatalog pdf di En 2012-06-22-01