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

Correct Mupad for this equation?

I am trying to port the attached equation into Matlab Mupad. I have attempted the following Mupad language code: xbar = stats::mean(x) xSumTerm := x -> _plus(x - xbar $ i=1..(nops(x)-1)); sum((x-xbar)^2,x=0..m-1) Error: The operand is invalid.…
heavy rocker dude
  • 2,271
  • 8
  • 33
  • 47
0
votes
0 answers

How to call the betaQuantile function in matlab

I am trying to call the betaQuantile function from Mupad in a m-file so I can run it in Matlab2014b. I was look at these two help files which seem to be relevant but still cannot figure out the…
0
votes
1 answer

why the sampling proprety of dirac function gives this?

In MuPAD I simplify: simplify(2*t*dirac(t+1)) Which gives : -2*dirac(t + 1) I know that f(t)*dirac(t-k)=f(k)*dirac(t) so f(t)=2*t , dirac(t+1)=dirac(t-(-1)) so that means k=-1 So 2 * t * dirac(t+1) =2*(-1)*dirac(t) =-2*dirac(t) which is…
TraceKira
  • 281
  • 2
  • 13
0
votes
0 answers

How to get MuPAD to do some integrals for me (involving heaviside and dirac functions)?

My goal is to compute the n-fold self-convolution of a function rho(eta) where eta > 0, using MuPAD. (The background are energy densities of systems composed of many identical subsystems.) I tried to start with a simple case, but I'm already…
A. Donda
  • 8,381
  • 2
  • 20
  • 49
0
votes
1 answer

why does Mupad replaced my E(s) here?

I have the code: C(s):=E(s)*G(s); B(s):=C(s)*H(s); openLoopTransferFunction:=B(s)/E(s) Why does Mupad gives as output e(s)? Mupad output: G(s)*exp(1)(s) (or written G(s)*e(s) in blue) How can I keep my E(s) not changed automatically by Mupad…
TraceKira
  • 281
  • 2
  • 13
0
votes
0 answers

Matlab 2012b too slow when solving a system of two equations on mupadmex(statement)

I'm trying to solve a system of two non-linear equations in Matlab in a for loop. I am aware that the for loop may cause the program to run slow but right now it takes around an hour for one instance to be solved. On debugging the code, I realized…
0
votes
0 answers

Error in MuPAD command: An arithmetical expression is expected. [exp]

I wanted to write the expression given by: In this calculate_dk and calculate_T are functions having input arguments ii and jj. I wanted to maximize this equation with respect to theeta variable. But, I am unable to form required expression for…
Vikrant Karale
  • 147
  • 1
  • 15
0
votes
0 answers

Find degree of non-polynomial monomial in Matlab

Say i have an expression as such in MATLAB: syms x y = x^(-5/2) I would like to find the degree/exponent of x, which is (-5/2). it is possible for polynomials in matlab but how can it be done for non-polynomial as above? Thanks
arvindrajan92
  • 159
  • 2
  • 9
0
votes
0 answers

Create sparse graph from matrix

I have a large but sparse graph that I want to display with MuPAD. The graph is denoted in Matlab as a sparse squared matrix of edge weights. When using Graph::createGraphFromMatrix(m), I am unable to create anything but fully connected graphs. I…
Florian von Stosch
  • 1,700
  • 1
  • 14
  • 22
0
votes
0 answers

How to Generate a skewed Pyramid in MuPAD?

Plenty of times we need to illustrate concepts with some 3-D figure. Basic figures seem easy to do but can MuPAD handle skewed 3-D shapes? I would like to plot a skewed pyramid in MuPAD. I would like it to have a square base with side length 1. This…
pefmath
  • 407
  • 2
  • 4
  • 10
0
votes
1 answer

MuPAD: How to determine just the existence of solutions to a set of linear inequalities?

Using MuPAD, I want to find out if at least one solution exists for a set of of linear inequalities. For example, the following system of linear inequalities: which I solve in MuPAD by: solve({x+z>2*y,z>y,2*z>2*x,x>0,y>0,z>0},{x,y,z} and MuPAD…
edison1093
  • 23
  • 6
0
votes
2 answers

Mupad cast boolean to integer

I give a simple example of what I want to do in Matlabs MuPad S := matrix([[0,S_1,S_2]]); sum(S[k]*(k < 2)* S[k] * (TRUE), k=1..3) should be: "S_1^2 + S_2" however I get: Error: The first argument must be of type 'Type::Arithmetical'. [sum] I…
apfel
  • 3
  • 3
0
votes
1 answer

Can matlab (or mupad) evaluate symbolic expressions containing non-commuting operators?

Say I give something like AB+AB+BA to matlab (or mupad), and ask it to simplify it. the answer should be: 2AB+BA. Can this be done in matlab or mupad? Edit: Ok, this is feeling rediculous. I'm trying to do this in either matlab or mulab, and..…
juggler
  • 319
  • 1
  • 5
  • 16
0
votes
2 answers

Matlab table function

I have tried running the example as shown in the documentation of MuPAD table: T := table(a = 13, c = 47) Doing so gives me the following error: Undefined function 'T' for input arguments of type 'char'. I have no idea what is going on. Does…
nullVoid
  • 199
  • 1
  • 6
  • 24
0
votes
1 answer

"Error in MuPAD command: DOUBLE cannot convert the input expression into a double array"

I've tried to find the answer to this simple for loop question but I can't find any tutorials on it. I'm trying to calculate a specific entry of a column vector but the error "Error in MuPAD command: DOUBLE cannot convert the input expression into a…