Answered
Integral equation with independent variable to be solved
As written, y = f / integral_{x=x1}^{x=x2} [x*erfc((x-a)/sqrt(t))] dx Best wishes Torsten.

9 years ago | 1

Answered
can you solve this using matlab function?
Use MATLAB's "roots" to determine n such that 1/100000*n*(n-1)*(n-2) = 2*3 and 1/95000*n*(n-1)*(n-2) = 2*3 Bes...

9 years ago | 0

Answered
optimisation with dynamic objective function
If the pi's are binary and p(1)+p(2)+...+p(n)=1, then there are only n cases to consider as possible solutions. So just calcu...

9 years ago | 1

| accepted

Answered
How to extract the internal time discretization of the solver PDEPE.
Use "OutputFcn" in the "options" structure. "OutputFcn" will then be called after each successful time step. Best wishes ...

9 years ago | 0

Answered
dsolve issue with solving nasty system of ODEs
Your system is too complicated to be solved symbolically. Use a numerical solver instead, e.g. ODE15S. Best wishes Tors...

9 years ago | 0

| accepted

Answered
Solving simultaneous ODEs where output(1) and output(2) are coupled
You have three linear equations in dydt(1), dydt(2) and dydt(3). Solve for dydt(1), dydt(2) and dydt(3). Best wishes To...

9 years ago | 1

Answered
How can find (BVLS) bound-variable least square for "lsqnonneg"?
Introduce new variables x' = x-alpha y' = beta-x and solve A*x' = b-A*alpha A*y' = A*beta-b x',y' >= 0 ...

9 years ago | 1

Answered
What alternatives can I use for fsolve?
If you have a condition x(1)>x(2), you can work with y(1)=x(1) and y(2)=x(1)+x(2)^2 as new variables. If you have a condition...

9 years ago | 0

Answered
Solving Coupled Ordinary differential equations with unknown constants in the equation
Take a look at the example "Compute Fourth Eigenvalue of Mathieu's Equation" under https://de.mathworks.com/help/matlab...

9 years ago | 0

| accepted

Answered
How to solve equations system without using "solve" or "linsolve" functions
https://de.mathworks.com/help/matlab/ref/mldivide.html Best wishes Torsten.

9 years ago | 0

Answered
How to solve a non linear problem with bv4c?
Your equation reads λ∙(T''(r)+T'(r)/r)+5e6-100*(T(r))^2 = 0. or - rewritten as a system of 1st order equations - T...

9 years ago | 1

Answered
I'm trying to fit some data using a non-linear regression with boundary conditions
The two constraints will reduce the number of fitting parameters from 5 to 3. The constraint y=0 at x=0 gives a+e=0, thus e=-...

9 years ago | 0

| accepted

Answered
Difference between two vector CDFs
Prob(A>B) = integral_{a=-oo}^{a=+oo} Prob(A=a)*Prob(B<a) da = integral_{a=-oo}^{a=+oo} f_A(a)*F_B(a) da = integral_...

9 years ago | 0

Answered
Why do I get the message "Spatial Discretization has failed..."?
You get this message because no boundary condition is set at x=xr. Best wishes Torsten.

9 years ago | 0

Answered
how define a conditional handle function?
function main x = [3 7.5 0 -0.03]; y = f(x) function y = f(x) i = find(x==0); ...

9 years ago | 0

Answered
non linear optimization.
Use "lsqnonlin". Best wishes Torsten.

9 years ago | 0

Answered
nonlinear 2D elliptic problem u_xx+u_yy= f(x,y)
f=reshape(f',(Nx+1)*(Ny+1),1); Best wishes Torsten.

9 years ago | 0

| accepted

Answered
Jcv1=int(Sc*s*x^2/((exp(x/KB*Ts))-1),x,1,inf);
Sc=...; KB=...; Ts=...; s=...; f=@(x)Sc*s*x.^2./(exp(x/KB*Ts)-1); Jcv1=integral(f,1,Inf); Best wishes Tor...

9 years ago | 0

Answered
Is it possible to pass additional constants to fsolve functions?
cfbw1 = 2; cfbw2 = 3; firstGuess = [1; 1; 1]; [x, fval] = fsolve(@(x)fsolve_test_1_function_1(x,cfbw1,cfbw2), firstGu...

9 years ago | 2

| accepted

Answered
Solve PDE system - interface problem between two domains
If the condition you state at x=delta is correct, you can solve the two PDEs one after the other since u1 and u2 are not coupled...

9 years ago | 0

Answered
I dont get the integration in symbolic form
Remove syms x1 and use "integral" instead of "int". Best wishes Torsten.

9 years ago | 0

Answered
Changing stepsize of fmincon algorithm applied to an undefined function
If you use a position change of 0.1, e.g., and you use a double for-loop, you will need appr. 1700 calls to "myScopeFunction" to...

9 years ago | 1

Answered
How do I constrain a fitted curve to be maximum to a specific point
Try a0 = mean(Y);b0 = 0.5*(max(Y)-min(Y));c0=24; f1 = fitoptions('Method','NonLinearLeastSquare','StartPoint',[a0 b0 c0]...

9 years ago | 0

Answered
Hi, can any one please help me in solving the integral involving in this problem, The pdf is also attached. Thank you in advance
Remove syms x and use g=@(x)sqrt(kpez^2*sin(x).^2+kpex^2*cos(x).^2); kpe=1/pi*integral(g,0,pi); Best wishes ...

9 years ago | 1

| accepted

Answered
MATLAB code for stiff differential equation with explicit Euler method
y(n+1) = y(n)+h*f([x(n) y(n)]); x(n+1) = x(n)+h*g([x(n) y(n)]); if your ODE system reads y' = 98x+198y x' = -99x...

9 years ago | 0

Answered
how to rectify the error Index exceeds matrix dimensions.?
When you enter the if-statement, v(i+1) does not yet exist because the array v is only constructed up to element v(i). Best w...

9 years ago | 0

Answered
Error using Integral - IntegralCalc - Syms
Use Acap11 = matlabFunction(Acap) Best wishes Torsten.

9 years ago | 1

| accepted

Answered
curve fitting for a certain area
You can define the transformed curve to be the orange curve in between 0 and 75 and to be 0 in between 75 and 100 :-) Best wi...

9 years ago | 0

| accepted

Answered
having different results when I put numbers manually and parameterize
You have to substitute the terms as a+b*i, not as a+bi. Best wishes Torsten.

9 years ago | 0

Load more