MATLAB: Convert 3D image to stl format by using MuPAD

3d imagestl format

is it possible to import 3D image by using any function or syntax? i have 3D image which had been converted from 2D image and now, from 3D image, i need to convert the 3D image to stl format.Do i need to load the code for 3D image in MuPAD? what should i do?