convert .xyz file to .obj file use specified style and options.
Material templates are defined in MolViewer.mtl.
Syntax
xyz2obj(xyzPath)
xyz2obj(xyzPath,style)
xyz2obj(xyzPath,style,option1,option2,...,optionN)
Description
xyz2obj(xyzPath) converts .xyz file whose file path is xyzPath to .obj file in current folder.
xyz2obj(xyzPath,style,option1,option2,...,optionN) uses specified style and options to convert files. These parameters’ effects are the same as those in showmol().
Examples
convert benzene.xyz to benzene.obj.
xyz2obj('benzene.xyz');