Question

Solve for a normaliztion constant in MATLAB

Hi, I have the following code: if true % code end syms h g x C n L p e E C m N y = - (exp(-(x*(g*1i + (- 2*g^2 + ...

4 years ago | 2 answers | 0

Question

Using solve to find unknown Constant in equation

Hi, I tried to use solve in the following fashion: if true % code end syms a x C Csolve = solve(C+pi*cos(a)+pi*i*...

4 years ago | 1 answer | 0

Question

Use the Euler relation to split a function into complex and imaginary parts

Hi, I found a thread considering to split a function into Re and Im, and used it's command: if true % code end y =...

4 years ago | 2 answers | 0

Question

Proof-checking a ODE solution

Hi, MATLAB online solves this: if true % code end syms a h Y(x) g x B E eqn = (h^2)*diff(Y,x, 2) + (2*i*h*g)*diff...

4 years ago | 1 answer | 0

Question

How to set several initial conditions when solving an ODE?

Hi, I have the following ODE: if true % code end syms a h Y(x) g x B E eqn = (h)*diff(Y,x, 2) + (g)*diff(Y,x) + (...

4 years ago | 1 answer | 0

Answered

Error in command for partial differentiation

Have a look at this short example: >> diff((exp(-i*(x+y)), x)) diff((exp(-i*(x+y)), x)) â†‘ Err...

Error in command for partial differentiation

Have a look at this short example: >> diff((exp(-i*(x+y)), x)) diff((exp(-i*(x+y)), x)) â†‘ Err...

4 years ago | 0

Question

How can I determine if two eigenvectors form an open or closed subspace?

Hi, I have two eigenvectors, which form a subspace in H. Is there an easy way to determine whether the subspace they form is ope...

4 years ago | 1 answer | 0

Question

How to normalize an ODE ?

Hi, I want to normalize an ODE, and the following link: https://se.mathworks.com/help/symbolic/mupad_ref/ode-normalize.html ...

4 years ago | 0 answers | 0

Answered

Simple ODE solution from MATLAB and Mathematic disagree

Yes, that is what I experienced too. However, this is actually a bug, and I have reported it to MATLAB Support. It happened also...

Simple ODE solution from MATLAB and Mathematic disagree

Yes, that is what I experienced too. However, this is actually a bug, and I have reported it to MATLAB Support. It happened also...

4 years ago | 0

Question

Interpreting output from Limit estimation

Hi, I calculated the limit of a function: if true % code end y = (C - (exp(-2.*g.*i.*x./h)).*(C - T) + (g.*x)/2.*h...

4 years ago | 0 answers | 0

Question

Simple ODE solution from MATLAB and Mathematic disagree

Hi, I have in the last 2 months been trying to solve the rather simple ODE: aY''(x) + ibY'(x) -c = 0 initial condition Y(0...

4 years ago | 2 answers | 0

Question

How can I increase the precision of a limit to give a number with more digits?

Hi, I have the following: C= 1/a f = (C - (exp(-2x)).*(C - ((h)./2) + (g.*x)) limit(f,var,a)=W double(W) Howeve...

4 years ago | 1 answer | 0

Answered

Solve systems of eqns

Birdman, have a look at this if true % code end syms a h Y(theta) g x eqn = h^2*diff(Y,theta, 2) + (2*i*h*g)*diff...

Solve systems of eqns

Birdman, have a look at this if true % code end syms a h Y(theta) g x eqn = h^2*diff(Y,theta, 2) + (2*i*h*g)*diff...

4 years ago | 0

Question

Solve systems of eqns

Hi, I tried solving a system for: if true % code end eqns = h^2*[diff(y,t)+2*i*g*y+g^2==0, diff(z,t)==y]; sol = d...

4 years ago | 2 answers | 0

Question

Problems in running Dsolve

Hi, I have apparently run dsolve in such a way that I got an error in the solution, and now have to re-do the whole thing. T...

4 years ago | 1 answer | 0

Question

How to split up a Latex output from MATLAB?

Hi, I have the immense output from MATLAB that does not show in Latex as it extends beyond the page border. I have tried to spli...

4 years ago | 0 answers | 0

Question

Discontinutiy of a function

Hi, I have the following command: if true syms h g x C h = 1 g = 4 C = 1/(2.*pi); f = (C - (exp(-2.*g.*1i.*x./h)).*((...

4 years ago | 0 answers | 0

Question

Transform a discontinuous function to continuous form

Hi, I have a non-hermitian discontinuous function which looks as: y(x) = sqrt(1/2) - e^(-2*i*x) *((sqrt(1/2)-(1/2)*cos(x) + (...

4 years ago | 1 answer | 0

Answered

How can I solve an integral equation with an unknown kernel?

Hi John, I found out that the non-hermitian nature of those functions makes them require a kernel, and not a constant, it appear...

How can I solve an integral equation with an unknown kernel?

Hi John, I found out that the non-hermitian nature of those functions makes them require a kernel, and not a constant, it appear...

4 years ago | 0

Question

How can I solve an integral equation with an unknown kernel?

The equation I am trying to solve is: <</matlabcentral/answers/uploaded_files/96903/CodeCogsEqn.gif>> where f(x) and h(x) ...

4 years ago | 3 answers | 0

Question

Compute a limit in two-dimensions

Hi, I am trying to calculate the limit of a function f(x,t): syms h g x C t h = 4 g = 3 C = 1 f(x,t) = (C*e^x + (g.*...

4 years ago | 1 answer | 0

Answered

Phase portrait for Complex ODE

thanks! I can only see arrows pointing in one direction

Phase portrait for Complex ODE

thanks! I can only see arrows pointing in one direction

4 years ago | 0

Question

Phase portrait for Complex ODE

Hi, I am trying to use: if true % code end function pdecaller() options = odeset('OutputFcn',@odephas2); ...

4 years ago | 2 answers | 0

Question

How to determine if a matrix is NP-hard or not in MATLAB

Hi, how can one determine if a matrix [a, b; 1, 1] is NP-hard in MATLAB?

4 years ago | 0 answers | 0

Question

Can MATLAB solve a integrodifferential equation?

Hi, I have checked some posts on the forum, however to no avail. I have the given system: { syms h g x C h = 2 g = ...

4 years ago | 1 answer | 0

Question

Phase portrait for a matrix

I have solved a system of ODEs, and would like to plot a phase portrait in MATLAB. This gave me the following matrix: [ 1, i...

4 years ago | 1 answer | 0

Question

Can MATLAB Be used to prove whether an operator is hermitian, skew hermitian, unitary or norm?

IF so, how? Thanks

4 years ago | 0 answers | 0

Question

How to prove continuity, single-valuedness and continuos slope of a function in MATLAB?

Hi, I would like to test a function's acceptable character to the SchrÃ¶dinger eqn, and have the three following criteria to chec...

4 years ago | 0 answers | 0

Question

Dsolve generates result with variable "t" when t not used

Hi; I tried to solve a PDE using dsolve, and the code looks like: if true syms h r l h = 2 g = 5 dsolve('r^2*(h^2*(D2v+...

4 years ago | 0 answers | 0