Main Content


Write mesh to STL file



stlwrite(objname,filename) writes the triangles in the mesh for an antenna or array object to an STL file in text format using the specified file name.


collapse all

Create a waveguide antenna for operation at 8 GHz and compute the impedance.

w = design(waveguide,8e9);
Z = impedance(w,8e9);

Create an STL file for the above antenna.


You will see the waveguide_8GHz.stl file in your current folder.

Load waveduide_8GHz.stl and visualize the platform.

plat = platform('FileName','waveguide_8GHz.stl','Units','m')
plat = 
  platform with properties:

         FileName: 'waveguide_8GHz.stl'
            Units: 'm'
    UseFileAsMesh: 0
             Tilt: 0
         TiltAxis: [1 0 0]


Input Arguments

collapse all

Antenna or array object, specified as an antenna or array handle.

Name of STL file, specified as a character vector in STL format.

Introduced in R2019a