Answered
Solve a variable and then the second order differential equation (ODE45)
You can't prescribe q'' since it is automatically given by q'' = M^(-1)*(tau-g-C*q') Best wishes Torsten.

9 years ago | 1

| accepted

Answered
minimization problem in vector form containing unity conditions.
Use "linprog". Best wishes Torsten.

9 years ago | 1

| accepted

Answered
How do I transform a Octave lsode equation to a Matlab ode45 equation?
function main N = 800; tspan = 0:N; x0 = ...; [T Y]=ode45(@dgeodesic,tspan,x0); function [ y ] = dgeodesic( ...

9 years ago | 1

| accepted

Answered
How do I plot a solution to a 2nd order PDE?
Use MATLAB's "pdepe" where you interpret "t" as your x-variable. Best wishes Torsten.

9 years ago | 0

Answered
how to find volume of the ellipse not in the origin by using the eigenvalues
vol=pi/sqrt(det(A)) Best wishes Torsten.

9 years ago | 0

Answered
Boundary Value Problem error bvp4c
You need to return a 3x1 vector instead of a 2x3 matrix in "bcpath". Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Generate Random Poisson Distrubution and Plotting.
https://de.mathworks.com/help/stats/poissrnd.html Best wishes Torsten.

9 years ago | 0

Answered
double integration with absolute value with integral2
I think, no. You will have to use "integral" twice in a nested manner. Best wishes Torsten.

9 years ago | 0

Answered
For loop not working when run inside a function!
A(p,i) = C(1,i)*B(p,i); Best wishes Torsten.

9 years ago | 0

Answered
how to write this function
minimum = inf; index = -1; for k=1:numel(A) if A(k)>1 && A(k)<4 && B(k)>1 && B(k)<3 && C(k)>1 && C(k)<4 && obj(k)<m...

9 years ago | 0

Answered
system of equations with nonlinear constraint
Then x is a normalized eigenvector to the minimum eigenvalue of the matrix M=A*transpose(A) where A=[A11-B A12 A13;...

9 years ago | 1

| accepted

Answered
How to generate mixed exponential distribution random number using the command in MATLAB?
https://de.mathworks.com/matlabcentral/fileexchange/29136-stochastic-weather-generator--weagets-?focused=3858295&tab=function ...

9 years ago | 0

| accepted

Answered
Cannot find solution & Symbolic parameters are not allowed in nonpolynomial equations.
Use syms p instead of syms p fu and S(i) = vpasolve(fu(i)==(ellipke(p.^2)-ellipticF(asin(1./(sqrt(2).*p)),(...

9 years ago | 0

| accepted

Answered
Summation with FOR Loop
omega=...; t=...; N=...; summe = 0.0; for k=1:N summe = summe + sin(omega*t*(2*k-1))/(2*k-1); end Bes...

9 years ago | 4

| accepted

Answered
Simulation of a coupled ODE-transport PDE system
There are no ready-to-use MATLAB tools available for your system of equations. Discretize the PDE (2nd equation) in space and...

9 years ago | 0

| accepted

Answered
define a function which computes numerical integral
function main t = ...; cg1return = integral(@fun,0,t); function y = fun(s) f = @(s)...; g = @(z)...; f...

9 years ago | 0

Answered
How to solve a boundary value problem (differential equations) which contains dependent variable values at the boundary??? The equation is like a integro-differential equation.
Try "dsolve" on the problem (-iy+y'''')=(A+Bx)*C2+(C+Dx)*C1 with boundary conditions y(0)=0, y'(0)=1, y''(1)=0, y''...

9 years ago | 0

| accepted

Answered
I have a function beta defined as an integral. I want to define another function alpha "being the integral of that function".
Solve d(alpha)/ds = 0.5*(exp(-(-c*s*b+a*exp(-b*s)-a)/b)*y)^2 dy/ds = -exp((-c*s*b+a*exp(-b*s)-a)/b) alpha(0) = alp...

9 years ago | 0

Answered
Solving a system of nonlinear, discretized partial derivatives (mass balances) using FSOLVE
*First question:* From what you post we can not tell the reason for the error message. Maybe your call to "fsolve" will tell ...

9 years ago | 0

Answered
please, help me with z transformation of 1/(n+1) in matlab
syms n z f = 1/(n+1); ztrans(f,n,z) does not work ? Best wishes Torsten.

9 years ago | 0

Answered
Maximize linear programming using linprog
[X,val]=linprog([-150 -175],[7 11;10 8;-1 0;0 1],[77;80;-9;6],[],[],[0 0],[Inf Inf]); Best wishes Torsten.

9 years ago | 3

| accepted

Answered
Stiff Delay Differential Equations
radar5 is your friend: http://www.unige.ch/~hairer/software.html Best wishes Torsten.

9 years ago | 0

Answered
Calculate length of a curve in 3d
http://tutorial.math.lamar.edu/Classes/CalcIII/VectorArcLength.aspx Best wishes Torsten.

9 years ago | 0

Answered
How do I determine if a matrix is nilpotent using matlab?
Your equation is wrong ; it must read eqn = A^x==B_A But you should not check for nilpotency this way. In your case, it...

9 years ago | 1

| accepted

Answered
write a symbolic sum
Why symbolic ? Use f = sum(x) Best wishes Torsten.

9 years ago | 0

Answered
Finite Difference Scheme Error
In the calculation of C(i,j), you can't refer to C(i+1,j) because it's not yet defined. Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Issues implementing quad function to a definite integral using element by element calculations
y5=quad('cos(x).*exp.^sqrt(x)',0,pi*4) Best wishes Torsten.

9 years ago | 0

Answered
Eigenvector problem with complex conjugate eigenvalues
null(A) might help: https://de.mathworks.com/help/matlab/ref/null.html Best wishes Torsten.

9 years ago | 0

| accepted

Answered
solve systems of linear equation in for loop
ax = 0; ay = 0; az = -9.8; u = 16; phi = 0; h1 = 60.96; h2 = 0; dz = h1 - h2; theta = 1:1:180; u_x...

9 years ago | 0

| accepted

Load more