%% Create a Virtual World in a Canvas
% Create a figure. Create a canvas in the figure and specify a title.

pf = figure;  
pp1 = uipanel('Parent',pf,'Title','Panel with Title');

%
% Create and open a virtual world.

w = vrworld('vrlights');
open(w);

%
% Create a canvas in the virtual world.

c = vr.canvas(w,pp1);

%
% Copyright 2012 The MathWorks, Inc.