MATLAB Answers

How do you export a plot into a stl file?

28 views (last 30 days)
Sophia Smith
Sophia Smith on 18 Mar 2018
Answered: voxey on 14 Dec 2018
t = [0:0.1:2*pi] a = sin(t); plot(t,a)
Trying to export this sin plot as an stl. file. I may need to make it 3d first. Any ideas?

  0 Comments

Sign in to comment.

Answers (1)

voxey
voxey on 14 Dec 2018
DT = delaunayTriangulation(xc,yc,z);
sha=alphaShape(xc,yc,z);
[T,Xb] = freeBoundary(DT);
TR = triangulation(T,Xb);
stlwrite(TR,'yourstlname.stl',text)

  0 Comments

Sign in to comment.

Sign in to answer this question.