Answered
How do I generate a vector with random numbers based on a density function?
v=5+4*sqrt(rand(1000,1)); gives you a vector v of 1000 random numbers based on the above density function. Look up "Invers...

10 years ago | 1

| accepted

Answered
I need help solving these equations for K_1 and K_2, which are two 3x1 matrices.
I don't know the function "lorenz" and whether the result is linear in k_1,...,k_6. If yes, you have 12 linear equations in 1...

10 years ago | 0

Answered
Which optimization tool to use?
http://tomopt.com/tomlab/products/propt/ Best wishes Torsten.

10 years ago | 0

Answered
how we can find intersection of sphere and cylinder????
Insert 1.4 for x1^2+x3^2 in the first equation and you'll see that the two surfaces do not intersect ... I don't know whether...

10 years ago | 0

Answered
Coding of nonlinear convection-diffusion equation using matlab
Use MATLAB's pdepe. Best wishes Torsten.

10 years ago | 0

Answered
How to do foward right division?
C=(A*B.')/(B*B.') Best wishes Torsten.

10 years ago | 0

Answered
How to integrate this function from E to 0 (i-e direct Integral), (k, Cao, Cbo, Cqo, va, vb, vq, E all being variables)?
Hint: 1/((a+x)*(b+x)*(c+x))=1/((a-b)*(a-c)*(a+x))-1/((a-b)*(b-c)*(b+x))-1/((a-c)*(-b+c)*(c+x)) Now it should be easy to ...

10 years ago | 0

Answered
Constrained Optimisation in MATLAB
Conditions 2 and 3 give (7C3)*(4C2)=210 cases to be considered. (nCk = n!/(k!*(n-k)!) I think the easiest way would be to us...

10 years ago | 0

Answered
How to use internal solutions generated during ODE solver for the next ODE iteration?
Use dde23 instead of ode23: http://de.mathworks.com/help/matlab/ref/dde23.html Best wishes Torsten.

10 years ago | 0

| accepted

Answered
How can I use 'if statement' in ode function?
Use if (a<b) && (b<c) instead of if a<b<c Best wishes Torsten.

10 years ago | 0

Answered
Weibull fit 3 parameters
Use MATLAB's "mle". Therein, supply pdf and cdf of the 3-parameter Weilbull distribution as a custom distribution. Best wishe...

10 years ago | 0

Answered
How to solve coupled second order ODE using ode45
Take a look at the examples provided for the use of the ODE integrators in MATLAB: http://de.mathworks.com/help/matlab/ref/od...

10 years ago | 0

Answered
error : Function integration trapezoidal
My guess is that the "l" in the formula s = s+(x(k+l)-x(k))*(y(k)+y(k+l))/2; should be a "1". Best wishes Torsten.

10 years ago | 0

Answered
linear optimisation problem error
You forgot to include the two positivity conditions on x1 and x2: x1,x2 >= 0. Best wishes Torsten.

10 years ago | 0

Answered
how can i solve Coupled PDEs with variable coefficients?
help pdepe Best wishes Torsten.

10 years ago | 0

Answered
How to include piecewise defined functions in bvp4c solver?
Solve your problem as a multipoint boundary value problem: http://de.mathworks.com/help/matlab/ref/bvp4c.html#bt5uooc-23 S...

10 years ago | 0

| accepted

Answered
2nd degree ODE
dot=[var(2);-sin(var(1))*9.81/0.2]; Best wishes Torsten.

10 years ago | 0

Answered
I am using the pdepe function and my question is how I could fix the following error: 'This DAE appears to be of index greater than 1'.
You only prescribe one boundary condition for your PDE system, but four are necessary to fix the solution. Best wishes Tor...

10 years ago | 1

| accepted

Answered
Inbuilt Bessel Polynomials in Matlab
See the definition in terms of Bessel functions on the page from above. Best wishes Torsten.

10 years ago | 0

Answered
HI I am trying to solve the following 2nd order differential equation xy''=2y'
If you only need the solution: it is y(x)=a*x^3+b for a,b being constants determined from the initial/boundary conditions. I...

10 years ago | 0

| accepted

Answered
Solve system of 2nd order differential equations
y(1)=x, y(2)=y, y(3)=phi, y(4)=dx, y(5)=dy, y(6)=dphi in your formulation from above if you use ODE45 to integrate the system de...

10 years ago | 1

Answered
how can I derive coefficient of division of rational matrixfor exmple (s/s^2+3)=s^-1-3S^-3 ... I want 10 or more coeffs. in other word i need to find hankel matrix from transfer matrix...
s/(s^2+3) = (s/s^2)/((s^2+3)/s^2)= 1/s * 1/(1+3/s^2) = 1/s * 1/(1-(-3/s^2)) = 1/s * sum_{i=0}^{i=oo} (-3/s^2)^i...

10 years ago | 0

Answered
Fitting more than one set of data to system of ODEs
err=cd'-cs; Best wishes Torsten.

10 years ago | 0

Answered
lsqnonlin -not enough input arguments-
Your FUN function must only have one argument, namely p. Best wishes Torsten.

10 years ago | 1

Answered
How do I solve system of 4 partially dependent PDEs?
In the first equation, do you really mean vg*du2/dz ? Or vg*du1/dz ? Best wishes Torsten.

10 years ago | 0

Answered
Fitting more than one set of data to system of ODEs
The error message is quite clear. You will have to provide td for ODE45 as td=[7.9 8 8.3]. Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Help with ODEs in bvp4c
What do you mean by "it did not work" ? Best wishes Torsten.

10 years ago | 0

Answered
2 dimentional partial differential equation
Discretize the spatial derivatives and solve the resulting system of ordinary differential equations in the t-variable using ODE...

10 years ago | 0

Answered
How can I Solve a Second Order ODE with ODE45?
There is a singularity in t=0 ... Best wishes Torsten.

10 years ago | 0

Load more