MATLAB: How to load a .wrl file on to a GUI

.wrl3d imagegui

I have a .wrl file I'd like to show up in the 'axes' section of a GUI. Is this possible?

Best Answer

set(gcf,'Units','pixels');
vrObjects.world = vrworld('spring.wrl');
open(vrObjects.world);
vrObjects.canvas = vr.canvas(vrObjects.world, gcf, [50 80 425 225]);
vrObjects.spring = vrnode(vrObjects.world,'spring');
Small example..