I have an array x
of 3D positions in Matlab. I would need to convert this trajectory into a CAD model (for simulation on another software that need 3D CAD files for trajectories).
How can I convert a 3D Matlab trajectory into a 3D file (STEP, IGES, etc.)?
There is a file exchange function Nurbs2IGES that might do the trick for you as well as an igesout function.
Also, depending on the CAD software you are trying to use, many such as Solidworks allow you to import a text file of points which can then be connected in the CAD software itself. Here is a related tutorial for Solidworks.