(To be removed) Capture virtual reality figure image
vrfigure.capture will be removed in a future release. For more
information, see Version History.
image_capture = capture(figure)
figure — Virtual reality figure
Virtual reality figure, specified as a
image_capture — Virtual reality figure image
Virtual reality figure image, captured as an array. The array is an m-by-n-by-3 data array that defines red, green, and blue color components for each individual pixel.
Capture an RGB Image of a Figure
Create and open a
vrworld object and associate it with the virtual world
myworld = vrworld('vrmount'); open(myworld);
View the virtual world in the Simulink® 3D Animation™ Viewer.
f = vrfigure(myworld);
Create an RGB image of the figure.
image_capture = capture(f);
Display the RGB figure image in a MATLAB® figure window.
Version HistoryIntroduced before R2006a
R2023b: To be removed
vrfigure.capture will be removed in a future release.
sim3d classes and Simulation 3D blocks in
Unreal Engine Scenario Applications to
interface MATLAB® and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Get Started Creating Virtual World with Actors.