MATLAB SYMBOLIC MATH TOOLBOX 5 - MUPAD Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Kalkulatory MATLAB SYMBOLIC MATH TOOLBOX 5 - MUPAD. EN40 Mupad Tutorial Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 19
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
Dynamics and Vibrations
Mupad tutorial
School of Engineering
Brown University
This tutorial introduces the MATLAB mupad’ environment for symbolic calculations. You should work
through the MATLAB tutorial before starting this one.
1. What is Mupad?
Mupad is a GUI driven MATLAB package that helps you do algebra, calculus, as well as to graph and
visualize functions. As you know, MATLAB is good for writing simple programs and working with
numbers, but is cumbersome for doing symbolic calculations. In contrast, Mupad works with symbols by
default, and has a nice menu-driven interface.
2. Starting Mupad
You run Mupad by first starting MATLAB (see the Matlab tutorial if you don’t know how to do this),
then typing
>> mupad
in the MATLAB command window. Start mupad now, and type in the commands as they appear in the
tutorial. You might find it helpful to experiment and explore the various functions on your own as well.
3. Basic Mupad window
You should see the GUI shown below. Most of the buttons should be self-explanatory. Try clicking a
few at random to see what happens…
Mupad function shortcuts
Enter Mupad
commands here
Shortcut to plotting
Mupad help
Execute
Insert new line
Przeglądanie stron 0
1 2 3 4 5 6 ... 18 19

Podsumowanie treści

Strona 1 - Mupad tutorial

Dynamics and Vibrations Mupad tutorial School of Engineering Brown University This tutorial introduces the MATLAB ‘mupad’ environment for symb

Strona 2

(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

Strona 3 - 5. Help

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

Strona 4 - 7. Basic algebra

The ‘implicitplot’ is another very useful function. In 2D, it will plot a line or curve that satisfies an equation. In 3D,

Strona 5

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

Strona 6

Mupad can do partial derivatives as well It can also do definite integrals Try the integral without the ‘assume(‘σ’>0) as well (just

Strona 7 - 8. Plotting

Of course not all integrals can be evaluated… But definite integrals can always be evaluated numerically. Another very useful application is to tak

Strona 8

Notice that Mupad gives a formula for the solution (recall that MATLAB only gives numbers). Here’s another example – this is the differential equati

Strona 9

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

Strona 10

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

Strona 11

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

Strona 12

4. Simple arithmetic calculations Just like MATLAB itself, Mupad can be used as a calculator. Try the following commands Here, the gamma functio

Strona 13 - 9. Calculus

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

Strona 14

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

Strona 15 - 10 sin( )

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

Strona 16

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

Strona 17 - 11. Vectors and Matrices

But you can get an approximate, numerical solution You can find more information about equation solving in the Mupad help documentation… 8. Plott

Strona 18

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

Strona 19

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

Komentarze do niniejszej Instrukcji

Brak uwag