Dynamics and Vibrations Mupad tutorial School of Engineering Brown University This tutorial introduces the MATLAB ‘mupad’ environment for symb
(I do have a life – although there may not be much of it left - and hate to read manuals, so I just copied and pasted an example directly from the m
Mupad can do parametric plots as well, in both 2D and 3D. Try this (The second plot here is an animation – you have to click on the plot to start
The ‘implicitplot’ is another very useful function. In 2D, it will plot a line or curve that satisfies an equation. In 3D,
Saving plots: If you would like to include a plot in a report, you can click on the figure, then use Edit>Copy Graphics, th
Mupad can do partial derivatives as well It can also do definite integrals Try the integral without the ‘assume(‘σ’>0) as well (just
Of course not all integrals can be evaluated… But definite integrals can always be evaluated numerically. Another very useful application is to tak
Notice that Mupad gives a formula for the solution (recall that MATLAB only gives numbers). Here’s another example – this is the differential equati
22( ) ( )d y dyy t y tdtdt Again, mupad gives an exact solution – but it’s not very easy to visualize what the solution looks like! If we subst
These commands create row and column vectors; a matrix’ multiply a matrix by a vector (to produce a column vector); multiply a column vector by a ro
This should be enough to get you started, but we’ve only looked at a small subset of Mupad’s capabilities. You might like to explore the help man
4. Simple arithmetic calculations Just like MATLAB itself, Mupad can be used as a calculator. Try the following commands Here, the gamma functio
5. Help Mupad will automatically open the help page for the MATLAB symbolic math toolbox. You can start help by pressing the question mark on the com
6. Saving your work You can save your work in a Mupad ‘Notebook’ (a bit like a MATLAB script) by going the the File>Save menu. The file should b
hand, if you type a :=b^2 (with a colon) then you have assigned the value b^2 (a symbol) to a variable called a. Mupad will substitute b^2 for a any
Mupad can solve systems of equations too You often want to solve an equation or system of equations, and then substitute that solution into a thir
But you can get an approximate, numerical solution You can find more information about equation solving in the Mupad help documentation… 8. Plott
The ‘plotfunc2d’ command does the same thing as plot but has more options to control the appearance of the plot Another way to do a plot is to sele
You can display multiple plots on the same axes If you have no life and love to read help manuals, you make very fancy looking plots
Commentaires sur ces manuels