Questions tagged [mupad]

MuPAD is a computer algebra system.

MuPAD is the computer algebra system behind the Symbolic Math Toolbox for MATLAB. It is not sold separately, but does offer a more symbolic computation oriented language as an alternative to computing in MATLAB.

82 questions
1
vote
1 answer

How to convert DOM::MATRIX to Function

A simple example of what I am doing is as follows: s := t*0.2: b := matrix([0.5,0.6,0.1]): f := matrix([sin(s),cos(s),s]): X := transpose(b)*(f); plotfunc2d(X,t=-2*PI..2*PI); The error is: Error: Expecting an arithmetical expression or a function.…
NKN
  • 6,482
  • 6
  • 36
  • 55
1
vote
0 answers

invalid index [list] error in MuPad/MATLAB

I am trying to plot the following tube in MuPad X := 0.4448-0.1423*cos(t*0.0013)+0.0236*sin(t*0.0013)+0.0180*cos(2*t*0.0013)-0.0818*sin(2*t*0.0013); Y := -0.2619+0.1274*cos(t*0.001)+0.0828*sin(t*0.001)-0.0108*cos(2*t*0.001)+0.0707*sin(2*t*0.001); Z…
NKN
  • 6,482
  • 6
  • 36
  • 55
1
vote
2 answers

MuPAD evaluation of local variables, Sum of row of array

I have discovered a strange behavior in MuPAD version 5.7.0 (MATLAB R2011b), and I would like to know whether this is a bug, and if not so, what I am doing wrong. Ideally, I would also like to know why MuPAD does what it does. Consider the array C…
Ingo Schalk-Schupp
  • 843
  • 10
  • 26
1
vote
2 answers

Array Size in Mupad?

It seems much more clearer that be asked; but I could not find it by my first searches. Does anyone know how to find size of an array in Mupad session of Matlab? M := [12 , 21, 432]: size(M): length(M): None of them works well for me.
hossayni
  • 465
  • 1
  • 3
  • 16
1
vote
1 answer

How do I easily compare coefficients of two polynomials in MuPad

How do I easily compare coefficients of two polynomials in MuPad?
Alex Hirzel
  • 1,719
  • 2
  • 12
  • 18
1
vote
1 answer

Using Restricted search in numeric::fsolve in mupad

I'm using numeric::fsolve in mupad to solve for x1 x2 m1 and m2. Command used is : Scase2:=numeric::fsolve([m1,g2,eqn1,eqn2],m1=0,m2=0..infinity,x1=-3.14..3.14,x2=-3.14..3.14],RestrictedSearch,MultiSolutions) Answer returned is: [m1 = 0.0, m2 =…
Safvan P
  • 23
  • 2
1
vote
0 answers

Why doesn't MuPAD draw a dotted line at the discontinuity?

I have the initial drawing which I need to make using sums of step functions: Solution: We have 3 lines L1 ,L2 and…
TraceKira
  • 281
  • 2
  • 13
1
vote
1 answer

Use more "natural" form to manipulate piecewise step functions in Matlab MuPAD?

I have the unit step function: u0:= piecewise([-infinity < t and t < 0,0],[0 < t and t < infinity,1]): Now I want to plot it at some point: T:=1:; plot(u0|t=t-T/2); This works. But when I use a more natural expression: T:=1:; plot(u0(t-T/2)); it…
TraceKira
  • 281
  • 2
  • 13
1
vote
0 answers

MuPAD: Block Matrices

I'm working with homogeneous coordinates, and like to do some symbolic calculations in muPad. Lets say my transformation matrix T is 4x4, where the upper left is a 3x3 Rotation matrix called R, the upper right is a 3x1 vector called b and the lower…
ole
  • 11
  • 1
1
vote
2 answers

Algorithm to determine if a symbolic expression is a linear function

Is there an easy way to check if a vector valued symbolic function is linear? If so, is there an easy way to represent this expression in the form A*x, where A is a symbolic matrix and x is the argument (i.e. is there a way to "extract" A given x…
user1391279
1
vote
1 answer

Making a Rubik's Cube in Matlab?

I am trying to make a 3d model of Rubik's cube. I initially tried it using the patch command vert = [0 0 0; 0 1 0; 1 1 0; 1 0 0 ; ... 0 0 1;0 1 1; 1 1 1;1 0 1]; fac = [1 2 3 4; ... 2 6 7 3; ... 4 3 7 8; ... 1 5 8 4; ... 1 2 6…
Kenneth Joseph Paul
  • 2,171
  • 2
  • 14
  • 27
1
vote
1 answer

How to change the text size of a calculation

I can change the size of text in Mupad by going to View-> Configure -> Default Formats... But this doesn't change the text size of a calculation that I type in. Where can I change the text size of a calculation? Thanks!
Tim H UK
  • 285
  • 1
  • 3
  • 10
1
vote
1 answer

How to extract specific parts of an equation in MuPAD or Maple

I have MuPAD and Maple and I would like to do the following with one of those softwares: I have an equation containing several cosines with different amplitudes and different arguments as depictetd in the picture below in the first (blue) row. I…
Semjon Mössinger
  • 1,798
  • 3
  • 22
  • 32
1
vote
0 answers

Converting Summation from MuPAD to Matlab Function

I am trying to convert the following summation into a Matlab function through MuPAD:                                  This is what I have done so far... In Matlab, enter notebook_handle = mupad; In MuPAD I had formulated the above equation to be :…
1
vote
1 answer

two ways of using symbolic solve in matlab

Why can Matlab solve the following system of equations that way: eq1 = 'x1+x2+x4=1'; eq2 = 'x3+x4 = 2'; eq3 = '2*x1+3*x2+1*x3+4*x4=3'; eq4 = '3*x1+4*x2+2*x3+6*x4=p'; [p a b c d] = solve(eq1,eq2,eq3,eq4,p,x1,x2,x3,x4); but not if I use the following…