MuPAD Help Handout OPENING MuPAD To open MuPAD, click Start→ All Programs→Math Programs→MATLAB R2015a. From the main screen click the Apps tab at the top of the window. In the pane entitled Apps there is an icon for MuPAD Notebook. Click that icon. DESKTOP OVERVIEW Text region Input region Or Calculation Area Output region What are the major differences between MATLAB and MuPAD? Common Tasks in MATLAB and MuPAD Syntax Tasks Output Assignment Clear variables and functions from memory Suppress output Numerical value of expression Set variable precision digits Matrix input MATLAB numeric = clear MuPAD symbolic := delete ; Double(expression) display(# of digits) [a,b,c;d,e,f] Define symbolic expression syms : Float(expression) DISPLAY:= #of digits matrix([[a,b,c], [d,e,f]]) Don’t have to define symbolic expressions MATLAB vs. MuPAD Expressions MATLAB pi Inf NaN asin acos MuPAD PI Infinity undefined Arcsin Arcos Let’s look at some examples: Note: If you have lost the “[“ symbol that denotes the calculation (input) field, add it by selecting from the top menu Insert -> Calculation. Computing with numbers MuPAD returns integer results or rational results, when integers and rational numbers are computed. For example: The variable DIGITS indicate how many significant digits will go into computation. Float command finds a floating point approximation for an expression. For example: Differentiation and Integration To compute the derivative, use the diff command. To compute the integral, use int command. For example: Solving Equations Use a solve command to solve algebraic equations. For example: Moreover, you can solve equations with symbolic parameters. For example: Plotting To plot a simple 2-D plot, use a plot command. For example: If you want to plot several functions on the same figure, you should list all the functions and separate them by commas. MuPad will display functions in multiple colors:
© Copyright 2025 Paperzz