Monday, November 11, 2013

Exporting an STL from Matlab

In this tutorial, you will learn a simple way to export a 3D image as an STL by using Matlab. The functions you'll need to make the STL file in Matlab can be found in the 1st and 2nd link below, while a more in depth tutorial can be found in the 3rd link.

LINKS:

Okay: so let's get to it.

1. Save the above two functions into Matlab.

2. Make a 3D surface plot in Matlab.
For example, type in:
    >>  [X,Y] = meshgrid(-8,0.1:8); 
    >>  R = sqrt(X.^2+Y.^2) + eps;
    >>  Z = sin(R)./R;                  
    >>  surf(X,Y,Z)                      

3. Use the surf2solid function which you downloaded earlier:
    >> VariableName = surf2solid(X,Y,Z);

4. Use the stlwrite function that you downloaded:
    >> stlwrite('FileName.stl',VariableName)  
*FileName is to be replaced with what you want to name your file

And there you have it, a nice simple way of exporting a 3D file from Matlab. 

81 comments:

  1. Hi,

    It showed an error stating Z should be a matrix not a vector/scalar quantity

    ReplyDelete
  2. Theres an error in code should be -
    >> [X,Y] = meshgrid(-8:0.1:8);
    >> R = sqrt(X.^2+Y.^2) + eps;
    >> Z = sin(R)./R;
    >> surf(X,Y,Z)

    ReplyDelete
  3. Finding the time and actual effort to create a superb article like this is great thing. I’ll learn many new stuff right here! Good luck for the next post buddy..
    Matlab Training in Chennai

    ReplyDelete
  4. Global 3D Labs the best and safest to buy 3D printers in India. We manufacture a wide range of best-in-class 3D printers and 3D printing service providers in India

    ReplyDelete
  5. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
    Data Science course in rajaji nagar
    Data Science with Python course in chenni
    Data Science course in electronic city
    Data Science course in USA
    Data science course in pune | Data Science Training institute in Pune

    ReplyDelete
  6. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    best rpa training in chennai
    rpa training in chennai
    rpa interview questions and answers
    automation anywhere interview questions and answers
    blueprism interview questions and answers
    uipath interview questions and answers
    rpa training in bangalore

    ReplyDelete
  7. When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.
    AWS Training in Bangalore | Amazon Web Services Training in Bangalore
    Advanced Amazon Web Services Training in Pune | Best AWS Training in Pune
    AWS Online Training | Best Online AWS Certification Course - Gangboard
    Best Top 110 plus AWS Interview Question and Answers 2019

    ReplyDelete
  8. Thank you for sharing wonderful information with us to get some idea about that content. check it once through
    Machine Learning With TensorFlow Training and Course in Tel Aviv
    | CPHQ Online Training in Beirut. Get Certified Online

    ReplyDelete
  9. Very useful post keep migrate into new blogs

    https://www.slajobs.com/advanced-excel-vba-training-in-chennai/

    ReplyDelete
  10. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Python Online training
    python Training in Chennai
    Python training in Bangalore

    ReplyDelete

  11. Some us know all relating to the compelling medium you present powerful steps on this blog and therefore strongly encourage
    contribution from other ones on this subject while our own child is truly discovering a great deal.
    Have fun with the remaining portion of the year.

    Selenium training in bangalore | best selenium training in bangalore | advanced selenium training in bangalore

    ReplyDelete
  12. Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi

    ReplyDelete
  13. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
    Data Science Training in Chennai
    Data Science course in anna nagar
    Data Science course in chennai
    Data science course in Bangalore
    Data Science course in marathahalli
    Data science course in bangalore

    ReplyDelete
  14. It is amazing and wonderful to visit your site.


    CEH Training In Hyderbad

    ReplyDelete
  15. #Learn #Import #Export, #Exim #Courses, #Training Programs, #Classes, and #Seminars from #Experts. #Join Now #Short #Term #Export Import Course Classes, Seminars & Training Programs @ #Discounted #Fees. #Best #Institute for Export Import #Management Training,#trading#Consulting #Licenses,Export Training in #pune, #Mumbai, #Maharashtra, #India, Export Licenses, Export #Consultancy, Import Consultancy, #International Trade Show, Custom Clearance, and Export Import Insurance,Exim institute in pune, export #business training in #pune, export import #training #institute in pune, export training #services in pune, Export training in pune, #IEC #License in pune
    http://importexportfederation.com/

    ReplyDelete
  16. I'm glad for your achievements and would probably like to see much more in the near future. Thanks for share.
    Devops Training in Chennai | Devops Training Institute in Chennai

    ReplyDelete
  17. It is perfect time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or tips. Perhaps you could write next articles referring to this article. I want to read more things about it!
    machine learning course in bangalore

    ReplyDelete
  18. Hello, I read your blog occasionally, and I own a similar one, and I was just wondering if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me insane, so any assistance is very much appreciated.
    Data science Course Training in Chennai |Best Data Science Training Institute in Chennai
    AWS Course Training in Chennai |Best AWS Training Institute in Chennai
    Devops Course Training in Chennai |Best Devops Training Institute in Chennai
    Selenium Course Training in Chennai |Best Selenium Training Institute in Chennai

    ReplyDelete
  19. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites! Thanks for sharing. Great websites! Now please do visit our website which will be very helpful.
    machine learning course bangalore

    ReplyDelete
  20. nice article
    Unicsol offers Best full stack developer course in hyderabadget trained by 10+years of experienced faculty and get placed as full stack developer.

    ReplyDelete
  21. Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful
    java training in Bangalore

    ReplyDelete
  22. Very nice job... Thanks for sharing this amazing ExcelR Machine Learning Course Pune and educative blog post!

    ReplyDelete
  23. Very helpful blog post, explained everything very clearly, This blog really has all the info I was looking for. Thanks you for sharing. Electronics

    ReplyDelete
  24. Wonderful post! We are linking to this great post on our website. Keep up the great writing.
    Technology

    ReplyDelete
  25. Thanks for sharing this informative article. For more info about Belt Boxes very beautiful article nice use of pics.

    ReplyDelete
  26. I read the post it is a very good post . Its really nice post. I hope its useful to everyone. Check me here which is an spa product selling site.

    ReplyDelete
  27. Great... Excellent sharing.. This is very helpful for beginners.
    Read that provide me more enthusiastic.
    This helps me get a more knowledge about this topic. buy pinterest account

    ReplyDelete
  28. Your article is very informative. Thanks for sharing the valuable information.

    Pabrik Laundry
    Pabrik Mesin Laundry

    ReplyDelete
  29. This article is a guest post on the significance of this post and how important it is for business to
    Buy yahoo accounts post it on their websites. In this post we are going to discuss why it is important for businesses to post a sign up sheet and other important things that one should consider when making this big investment. When making a big investment such as this one is very important to consider all aspects and that is why it is important for business to make sure that they postBuy tinder accounts this on their websites. For those who are not able to make this post or understand its importance you can always check this out at my blog for more information.Buy snapchat account

    ReplyDelete
  30. Is this blog important for business? That's a question that I get asked quite frequently and the answer is a resounding yes! This blog has been one of the most powerful tools to increase my online sales dramatically. It's not a blog where I post sad stories or thoughts about my last vacation or what I ate for dinner the night before. Rather, it's a place where I post up relevant articles related to my business that are regularly monitored and updated so that my visitors always stay well informed and up to date on what I'm doing and why.

    Buy google voice accounts

    ReplyDelete
  31. This comment has been removed by the author.

    ReplyDelete
  32. Really informative and helpful article, thanks for sharing. If you are searching for write my research paper then follow the link for best writing service available online.

    ReplyDelete
  33. Great to become visiting your weblog once more, it has been a very long time for me. Pleasantly this article i've been sat tight for such a long time. I will require this post to add up to my task in the school, and it has identical subject along with your review. Much appreciated, great offer. data science course in nagpur

    ReplyDelete
  34. NDUW is a labor registration portal created by the Labor Department, Government of india. The registration of the unorganized workers (working class) of the state takes place on this portal.

    ReplyDelete
  35. All type services start in Bihar Govt go to see this services and help for filling form RTPS Bihar

    ReplyDelete
  36. These are very good post and i like your post...hindi skill

    ReplyDelete
  37. I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! pm kisan status check 11 installment

    ReplyDelete
  38. They're produced by the very best degree developers who will be distinguished for your polo dress creation. You'll find Ron Lauren inside an exclusive array which includes particular classes for men, women.
    data scientist training in hyderabad

    ReplyDelete
  39. Wow thank you very much for this creative content, this has really helped me a lot,specially first post of this site apkdownload.com

    ReplyDelete
  40. All I have to say is that it's fantastic! The blog is informative, and it consistently produces fantastic results.
    Please feel free to visit my website : Medsvilla
    medsvilla provide. Vidalista-20, often known as Tadalafil, is a medication that is commonly used to treat erectile dysfunction in men.

    ReplyDelete
  41. thanks for the post. visit our site too YtReparasi

    ReplyDelete
  42. Are you looking for Linux Training course in Pune ? AP2V Academy is the best option for you We are one of the best Linux Training provider academies in Pune, India. For More information contact us - 92103 33323.

    ReplyDelete
  43. This blog really has all the information, and your post is very helpful in explaining. Thank you for sharing.
    please visit my site : Buygenmeds
    LIKE, Cenforce 100mg tablets are one of the most well-known and well-known little blue pills for the treatment of erectile dysfunction.

    ReplyDelete
  44. This comment has been removed by the author.

    ReplyDelete
  45. Imagenomic Portraiture Serial Key (2022) is picture related application not a long ability show from the images editor The latest version of Crack Key most powerful app in pictures editing to update the ways one in to latest and unique. Portraiture Plugin For Photoshop CC Crack Free Download

    ReplyDelete
  46. Bimatoprost is commonly used to treat glaucoma, a condition in which the optic nerve is damaged due to increased pressure inside the eye.bimatoprost ophthalmic solution buy online

    ReplyDelete
  47. Experience the potent and energizing effects of Mit 45 with Kratom Point - your trusted source for high-quality Kratom products. Shop now and discover the power of Mit 45 for yourself!

    ReplyDelete
  48. Role cell current civil under base. Close store officer. Investment measure talk let home task never boy.career-news

    ReplyDelete
  49. Protect your workers with Invigilo AI's PPE Construction solution.
    Contact us today to learn more about how we can help you keep your workers safe.

    ReplyDelete