Help on how to use plot::SurfaceSTL

Hi everyone. ^___^ This is my first time posting a question and I apologize if it's a silly one but the command plot::SurfaceSTL has been giving me a massive headache.
I simply just wanted to know how to use this command - I've tried the line below (the format of which was taken from the documentation page for the command):
ServoBracket := plot::SurfaceSTL('ServoBracket.stl');
But that just gave me errors:
Undefined function 'ServoBracket' for input arguments of type 'char'.
So if anyone could shed some light on this situation or provide some basic working code, I'd be extremely grateful! ^___^
Also, since I'm on the topic, could I possibly know what the :: and := do exactly? I can't seem to find any info on them. :(
Thank you for your time.
Best Regards, A.K

 Accepted Answer

If you look at the URL for the documentation, http://www.mathworks.com/help/symbolic/mupad_ref/plot-surfacestl.html notice it includes "mupad_ref". That means it is a routine that is defined directly within the MuPAD programming language.
You can start up a MuPAD notebook from the MATLAB command line by giving the command mupad . You can then run that line of code from there.
Alternately, you can call into MuPAD from the MATLAB command line. You would use something like,
ServoBracket = feval(symengine, 'plot::SurfaceSTL', 'ServoBracket.stl');
Unfortunately I have no information about what happens if you attempt to use a MuPAD plotting command from the MATLAB command line.

3 Comments

Thanks for the reply! ^___^ I gave the code above a try but it came up with the following error:
MuPAD error: Error: First argument: expecting an STL file name. [plot::SurfaceSTL::new]
So then I tried the following:
ServoBracket = evalin (symengine, 'plot::SurfaceSTL("ServoBracket.stl")');
Which didn't return any errors but also didn't do anything. :/ I'm just trying to find some information on how to read plots from MuPAD now ... I'm guessing there wouldn't be any other ways of importing 3D models into MATLAB?
A.K
Nice! Thanks for the link! ^____^
Kind Regards, A.K

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!