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
9
votes
1 answer

Matlab/Mupad symbolic simplification for pretty output

I need to automatically simplify some symbolic expressions but the simplify function of matlab can't do everything i need. Example: simplify(expand((ax + bx)^2 + (ay + by)^2)) Which results in the output ax^2 + 2*ax*bx + ay^2 + 2*ay*by + bx^2 +…
Daniel
  • 2,993
  • 2
  • 23
  • 40
6
votes
1 answer

Pretty MuPad: Output of assignment, expression and result in one line - How to create that function?

I'm trying to get Matlabs's MuPad as pretty and convenient as MathCad. Assume two variable assignments: x_a:=2*unit::mm; y_b:=5*unit::mm; and I want a prettyfied (typeset with Tex) output like z = x_a + y_b = 7 mm I already managed to do so by…
Robert Seifert
  • 25,078
  • 11
  • 68
  • 113
6
votes
1 answer

Tidy up expression after differentiating

The equations I am working with in this problem contain exponentials. For this reason, after differentiating they appear again pretty much unchanged apart from additional constants and other factors. I was wondering if it might be possible to…
el_technic0
  • 553
  • 6
  • 14
5
votes
1 answer

Printing syms / matlabFunction slow

I am having a lot of trouble trying to make symbolic substitution go faster - that is, substituting in for variables in a symbolic expression and getting out a double. I am creating a complicated function f, and calculating its jacobian df. This…
user650261
  • 2,115
  • 5
  • 24
  • 47
4
votes
1 answer

Syntax error in MATLAB recurrence equation

I have looked up here how to declare recurrence equations. I tried the following example from that page: >> solve(rec(y(n + 1) = 3*(n + 1)*y(n), y(n), {y(0) = 1})) | Error: The expression to the left of the equals sign is not a…
typ1232
  • 5,535
  • 6
  • 35
  • 51
4
votes
0 answers

OOP: Change of class of object following operation - operations no longer as desired

I am new to Object Oriented Programming. After a lot of stressing, I have finally managed to define my own class of objects in matlab's symbolic engine, muPad. The engine has its own language, the syntax of which is very logical and similar to…
Kobs
  • 209
  • 3
  • 8
4
votes
3 answers

How to write a `lhs()` or `rhs()` function for symbolic expressions on Matlab

I have a symbolic expression in MATLAB with a == operator that I can use in solve(). What I want is to separate out the left hand side and the right hand side of the expression into two separate symbolic expressions. For example: expr =…
John Alexiou
  • 28,472
  • 11
  • 77
  • 133
3
votes
2 answers

Matlab change in symbolic notation of derivative

I've recently upgraded Matlab from 2013b to 2019a (yes, I know, a lot has changed....but not software costs). I have some "legacy code" which makes heavy use of the symbolic tool box. One thing that seems to be causing a big issue is the change in…
ThatsRightJack
  • 721
  • 6
  • 29
3
votes
1 answer

Maple messed up my MuPAD Matlab integration

I have installed a trial version of Maple recently, it has expired and I've already uninstalled it. But today, for my surprise, Matlab symbolic tool is not working properly anymore, I was able to find using google that Maple changes the symbolic…
Pedro77
  • 5,176
  • 7
  • 61
  • 91
3
votes
1 answer

Define general relative search path for custom Mupad procedures

Imagine I have a mupad-notebook myMupadNotebook.mn at the path 'C:\projectFolder\ABC\abc\'. It calls the procedure MyMupadProcedure.mu which is located at 'C:\DEF\GHI\'. Now I have a Matlab script main.m at 'C:\projectFolder\XYZ\xyz\' with the…
Robert Seifert
  • 25,078
  • 11
  • 68
  • 113
3
votes
1 answer

Finding all solutions to a non-linear equation system with MuPAD

My question is if there is a good way to use MuPAD functions in a Matlab script. The background is that I have a problem where I need to find all solutions to a set of non-linear equations. The previous solution was to use solve in Matlab, which…
Fija
  • 195
  • 8
3
votes
1 answer

Matlab: linear congruence solver that supports a non-prime modulus?

I'm working on some Matlab code to perform something called the Index Calculus attack on a given cryptosystem (this involves calculating discrete log values), and I've gotten it all done except for one small thing. I cant figure out (in Matlab) how…
dkhaupt
  • 2,220
  • 3
  • 23
  • 37
3
votes
2 answers

Cylinder with filled top and bottom in matlab

I am trying to create a "solid" cylinder that has a filled top and bottom to it. I know that there is the function cylinder(r) that creates one, though it does not have a top and bottom circle to "close it". I did some research and can't seem to…
Choub890
  • 1,163
  • 1
  • 13
  • 27
3
votes
2 answers

Using the Pochhammer Symbol in Matlab

I've tried to use a script that evaluates the Pochhammer symbol (rising factorial) in Matlab, but it fails to evaluate pochhammer(x,n) whenever x is a negative number even though the expression is valid when x is negative (Wolfram Alpha and…
3
votes
1 answer

Setting axis scale to logarithmic in MuPAD

I was wondering, is there a way to set the scale of the plot axis to logarithmic in MuPAD? This is possible with Matlab plots, but I couldn't find an option for MuPAD.
Milos
  • 39
  • 3
1
2 3 4 5 6