how can I run MuPAD from MATLAB Editor?

Answers (1)

You cannot run MuPAD from the editor.
MuPAD is the name of the software behind the Symbolic Toolbox. To get anywhere with MuPAD, you need to have the Symbolic Toolbox installed and licensed. The Symbolic Toolbox is included in the license for the Student Edition, but not for the Academic or commercial edition.
You can create a MuPAD notebook (interactive session) by using the command mupad
If you use a MATLAB command that calls upon the MuPAD software (such as "syms" or "solve") then MATLAB will automatically attempted to start MuPAD, and you will not need to do anything to use those commands.
You can use the MATLAB interface to MuPAD by typing commands at the MATLAB command line, or in scripts or in functions.

4 Comments

What I'm trying to do is to generate a 3d plot when I run my GUI. I had a hard time figuring out how plot 3d lines using MuPAD. But now how can I have it plotted when I run my GUI from MATLAB. By the way I do have the full version and I found the Symbolic tool box.
I really appreciate your help
MuPAD does have some native graphics, but that graphics is not designed to integrate with MATLAB GUIs. Usually you would calculate data and return it to the MATLAB level and plot it within MATLAB. The functions of the Symbolic Toolbox return symbolic numbers or symbolic expressions rather than floating point numbers, but you can use double() to convert symbolic numbers (and constant expressions) to floating point numbers.
Often you would use MuPAD to work out a symbolic formula, and then use matlabFunction() to convert the symbolic formula to a MATLAB function handle, and then use the function handle to process the data (and then plot it.)
Do you definitely need to use one of the MuPAD plot:: routines to create your lines? If so, which are you using?
http://www.mathworks.com/help/toolbox/mupad/stdlib/plot.html
I tried using plot3 in Matlab to get the correct graphical representation with no success, however in MuPAD it was straight forward and easy using plot(plot::Line3d. Then I got stuck in writing a code in matlab that will use my variables to draw the 3d plot in MuPAD and display it.
Thanks for your attention
What difficulties did you encounter when you tried to use plot3() in MATLAB itself?

Sign in to comment.

Asked:

on 26 Apr 2012

Community Treasure Hunt

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

Start Hunting!