|
Hi!
I'm need to export axes data from MATLAB GUI to .WRL format.
% Code snippet
axes(handles.axesSpace);
plot3(...);
hold on
surf(x,y,z,c,'cdataMapping','direct');
hold off
vrml(handles.axesSpace,'output.wrl');
Then I need to open 'output.wrl' in order to see the results:
>> myworld = vrworld('output.wrl')
myworld =
vrworld object: 1-by-1
(C:/MATLAB/output.wrl)
>> open(myworld)
??? Error using ==> vrsfunc
Error reading VRML file: C:/Users/Liana/Documents/MATLAB/output.wrl, line 625: Unknown node
type "NaN"
Error in ==> vrworld.open at 16
vrsfunc('VRT3SceneOpen', w(i).id);
Also, if I double click on 'output.wrl', then it is opened in the Editor instead of VRML viewer. So, why did I get the above error message?
Thanks a lot!
|