capture (vr.canvas) - Capture virtual reality canvas to RGB image
Syntax
z = capture(vr.canvas object)
Description
z = capture(vr.canvas object) captures
a virtual reality canvas object into a TrueColor RGB image. You can
then display this image with the image function.
Example
Create a vr.canvas object to contain the
virtual world, vrlights, capture that object to
an RGB image, and display that image with the image function.
w = vrworld('vrlights');
open(w);
c = vr.canvas(w, gcf, [30 30 300 200]);
z=capture(c);
image(z);
 | canvas (vr.canvas) | | figure (vr.figure) |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit