Conversion Matlab figure to x3d using conversion method number 2.
figure2xhtml.m function created by Dirk-Jan Kroon
The accompanying wish list describes how Matlab and Humusoft should improve their support for X3D, instead of using VRML and being many years out of date.
X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit