Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

saveas (Aero.VirtualRealityAnimation)

Save virtual reality world associated with virtual reality animation object

Syntax

saveas(h, filename)
h.saveas(filename)
saveas(h, filename, '-nothumbnail')
h.saveas(filename, '-nothumbnail')

Description

saveas(h, filename) and h.saveas(filename) save the world associated with the virtual reality animation object, h, into the .wrl file name specified in the filename variable. After saving, this function reinitializes the virtual reality animation object from the saved world.

saveas(h, filename, '-nothumbnail') and h.saveas(filename, '-nothumbnail') suppress creating a thumbnail image used for virtual world preview.

Examples

Save the world associated with h.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/asttkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,asttkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,asttkoff.wrl'];
h.initialize();
h.saveas([tempdir,'my_asttkoff.wrl']);

Introduced in R2007b

Was this topic helpful?