Answered
How to approach solutions in integration problems? How to overcome matrix dimensions problems in complex integrand? Calculating Ion Beam Range from Stopping Power (following ICRU Report 49 CSDA discussion)
For safety reasons, replace all *,/ and ^ operations in the fun Definition by .*,./ and .^. By looking over the expression su...

11 years ago | 0

Answered
how to fix the follwoing error?
The error message can have many reasons: singularity of the solution, stiffness of the ODE system, too high or low values for th...

11 years ago | 0

Answered
MINLP minimisation problem help
1. Loop over all possible combinations of y1,y2,y3. 2. Then, with a problem where y1,y2 and y3 are fixed values, use fmincon ...

11 years ago | 0

| accepted

Answered
how can I saturate the outputs of ODE45 using event functions with odeset ?
Your question has already been answered under <https://www.mathworks.com/matlabcentral/answers/196804-how-to-constraint-the-i...

11 years ago | 0

| accepted

Answered
How to solve this second order nonlinear differential equation?
function mat4bvp xstart=0.0; xend=...; A=...; B=...; C=...; D=...; E=...; solinit = bvpinit(lins...

11 years ago | 0

| accepted

Answered
Boundary condition Problem solving using bvp4c
You arranged your code as function main solinit=bvpinit(linspace(0,1,25),[0 1]); sol=bvp4c(@eqn1,@BC,solinit)...

11 years ago | 0

Answered
Partial differentiation-Multiple syms derivative x and y
syms t, L x = sym('x(t)'); % x(t) y = sym('y(t)'); % y(t) E1 = diff(y); E2 = cosh(L*x)*cos(L*y); ...

11 years ago | 0

| accepted

Answered
Partial differentiation-Multiple syms derivative x and y
http://www.mathworks.com/matlabcentral/answers/94623-how-do-i-symbolically-work-with-implicit-functions-i-e-x-t-within-the-symbo...

11 years ago | 0

Answered
How to convert a 1D solution to 2D using spherical axis symmetry
plot u(x,y)=f(5+sqrt((x-5)^2+(y-5)^2)) Best wishes Torsten.

11 years ago | 1

| accepted

Answered
Packed Bed Adsorber - PDE
Use the method of lines. Discretize the partial differential equation 0 = u*(dci/dz) + dci/dt + ([1-e]/e)*rho*k*(q-qi) ...

11 years ago | 0

Answered
To calculate the second root
f=@(x)6.78*sin(x-0.646)-2.67*exp(-x/0.754); x1=fzero(f,[0 1]); x2=fzero(f,[3 4]); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
boxplot function not working
What message do you get when you type which boxplot Best wishes Torsten.

11 years ago | 0

Answered
Why are my vectors different lengths?
There seem to be two indices n (1<=n<=NN) such that data(i,j,n) <= 0 for all 111<=i<=125, 163<=j<=166 ... Best wishes Tors...

11 years ago | 0

Answered
matrix data to surface
[X,Y]=meshgrid(5:5:20,100:100:300); surf(X,Y,[10 20 40 50;35 45 65 70;50 65 80 90]); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
To calculate the second root
Your question is unclear to me. Could you clarify ? Best wishes Torsten.

11 years ago | 0

Answered
Fourier Transform e^(-t)
Because your f is not integrable over IR, but only over IR+. Or what is integral_{t=-oo}^{t=0} exp(-t) dt ? Best wishes ...

11 years ago | 0

Answered
Fsolver is not finding solution
Plot your function and you will see that it has no zero. Best wishes Torsten.

11 years ago | 0

Answered
how can I add complex boundary conditions to pdepe functions?
A boundary condition of the form dq/dx=0 is set as p=0 ; q=1 ; a boundary condition of the form q=f(cs) is set as p=u-...

11 years ago | 0

| accepted

Answered
Calculate the sum of these two vectors using loops. Can't use sum()
Your code is ok although you just could have set c=a+b; I wonder why you are supposed to use a loop. Best wishes To...

11 years ago | 0

Answered
Solving PDE with state and time dependent boundary conditions
Because the solver gets its information on how the derivatives develop over time from odefun, you will have to include the time-...

11 years ago | 0

| accepted

Answered
how to constraint the input variables of ode45 with the odeset function (nonnegative option)
You can't limit the solution of an ODE. Once you have defined the ODE and given its initial conditions, the solution over you...

11 years ago | 0

Answered
Input data for lsqnonlin
lsqnonlin(@(x)Cylind_distance(x,arg1,arg2,...),W0,[-1,-1,-1],[1,1,1]); where arg1, arg2,... are arguments to Cylind_distance ...

11 years ago | 0

| accepted

Answered
Nonlinear equations with Jacobian
Take a look at the example under http://de.mathworks.com/help/optim/ug/nonlinear-equations-with-analytic-jacobian.html You...

11 years ago | 0

Answered
second order non-linear ODE and curve fitting: problem with initial conditions
For theta_0=0,phi_dot_dummy=Inf for your initial conditions since you divide by sin^2(theta_0)=0. Best wishes Torsten.

11 years ago | 0

Answered
the probability density function
Choose a possible distribution and use "distfit". Best wishes Torsten.

11 years ago | 0

Answered
Kolmogorov Forward Equation in pdepe
You will have to place many, many points around the point x0 where the mass is concentrated in order to get satisfactory results...

11 years ago | 0

Answered
Third Order Coupled ODE's
function main xa = 0; xb = 5; solinit = bvpinit(linspace(xa,xb,10),[0 0 1 1 0]); sol = bvp4c(@coupled_falkner_ska...

11 years ago | 0

| accepted

Answered
Third Order Coupled ODE's
function dydx = ode(x,y) m=...; Ri=...; Pr=...; dydx = [ y(2); y(3); -y(1)*y(3)-2*m/(m+1)*(1-y(2)*2)-2/(m+1)*Ri*y(...

11 years ago | 0

Answered
How do I fit a gaussian to a given plot?
help fitdist Best wishes Torsten.

11 years ago | 0

Load more