from Compiling a Simulink 3D Animation-based Application by Saurabh Mahapatra
Use the MATLAB Compiler to compile a 3D Animation application.

compile_this_3D_app.m
% Make sure that the directory in which these files are, are the current
% MATLAB working directory
mcc m vrmemb_lmco a vrheat_lmco.wrl

Contact us at files@mathworks.com