Answered
I want the coding for double summationI wrote the following code but my answer is not correct.
One hint: Because of the kroneckerDelta's in both double summations, substitute r=h-s+1 in the first double summation and r=h...

10 years ago | 0

Answered
Passing a parameters in MATLAB.
[x, fval, eflag, output] = fminunc(@(x)rosenbrockwithgrad(x,a,b), x0, options); Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Slove nonlinear differential equation with varying constants
Something like G=6.6726e-11; %Gravitational constant M=5.977e24; %Mass of Earth r=6.371e6;...

10 years ago | 0

| accepted

Answered
Solving laser rate equation with ode45
ti = 0; tf = 10; tspan=[ti tf]; y0=[0; 1]; % tp = photon lifetime tp = 1E-12; % n0 = internal efficiency ...

10 years ago | 1

Answered
How to solve an optimization problem in matab?
help intlinprog Best wishes Torsten.

10 years ago | 0

Answered
What is syntax of Kronecker Delta in MATLAB Version R2013a
From the documentation: "For kroneckerDelta with numeric inputs, use the eq function instead." Best wishes Torsten.

10 years ago | 0

Answered
How do I solve this 2nd order ODE with time-dependent parameters?
v0 = ...; tstart = ...; tend = ...; a= ...; b =...; fun=@(t,y)(g(t)-(0.5*b+k(t))*y(1)^2)/(y(1)*(a+f(t))); [T...

10 years ago | 1

| accepted

Answered
Problem Solving a System of Coupled Differential Equations
Subtracting equation (2) from equation (1) gives (x1 - x2)' = -(x1 - x2) with (x1 - x2)(0) = 1 Solution: ...

10 years ago | 1

| accepted

Answered
Computing the convolution of the difference between random variables
For a first check, I'd run a Monte-Carlo simulation with the empirical CDFs of X and Z. Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Optimization with boundaries constraints
Try "lsqlin". Best wishes Torsten.

10 years ago | 1

Answered
Symbolic integration of c/(b*z-a)
Use "int". https://de.mathworks.com/help/symbolic/int.html Best wishes Torsten.

10 years ago | 0

Answered
Please check 2nd ODE code?
You wrote 1.2 instead of 12 in the definition of ydot. Best wishes Torsten.

10 years ago | 0

Answered
Solving a boundary value problem using bvp4c
function res = bcfun(yl,yr) res = zeros(5,1); res(1) = yl(1); res(2) = yl(2); res(3) = y...

10 years ago | 0

| accepted

Answered
Solve Ax <= b with some unknown values of [b]? but with a relationship between them
If the u's are also unknown, you will have to put them to the other unknowns x1,...,x9 as x10,x11,x12 and x13. Best wishes ...

10 years ago | 1

Answered
First order differential equation
You mean 1000 equations. Help ODE45 Best wishes Torsten.

10 years ago | 0

Answered
how can i get an inverse normal distribution probability function value?
https://de.mathworks.com/help/stats/norminv.html Best wishes Torsten.

10 years ago | 0

Answered
Boundary conditions with stiff problems
Use the equations (u(2)-u(1))/(x(2)-x(1)) = G(u(1)) (u(n)-u(n-1))/(x(n)-x(n-1)) = G(u(n)) to solve for u(1) (u at 0) ...

10 years ago | 0

Answered
Boundary conditions with stiff problems
Boundary conditions don't depend on neighbour values, but are given independently. What _are_ the boundary conditions for you...

10 years ago | 0

Answered
How do you make an if statement execute for every 10th multiple of a counting variable?
if mod(n,10)==0 ... end Best wishes Torsten.

10 years ago | 2

| accepted

Answered
Solve simultaneous equations in matrix format AX=B with some known values of x
Enlarge A to a [6x6] matrix and b to a [6x1] vector by adding the equations x1 = x1_known x5 = x5_known if x1 and x5...

10 years ago | 0

Answered
calculating density of Methane in small pore sizes using peng-Robinson equation of state
https://de.mathworks.com/matlabcentral/fileexchange/4519-peng-robinson-eos/content/PengRobinson.m Best wishes Torsten.

10 years ago | 0

Answered
Output of dependent variables in ode solver
As a result from the call to ode15s, you get the temperature TEMP at different times in an array: [T,TEMP]=ode15s(...) N...

10 years ago | 0

Answered
Is CPLEX an open-source optimization toolbox?
No, it's commercial. https://en.wikipedia.org/wiki/CPLEX Best wishes Torsten.

10 years ago | 1

| accepted

Answered
Hi, I have a question about this function :
"dim" is the first array dimension of the multidimensional array x whose size does not equal 1. Best wishes Torsten.

10 years ago | 0

| accepted

Answered
How do I solve a constrained linear least squares problem where the constraint depends on elements in the solution?
A=[ (1+.0129*.5) 0 0 0; 0 (1+.0164) 0 0; (.0132*.5) (.0132*.5) (.0132*.5) (1+.0132*.5);0 1 2 -1 ]; b=[1;1;1;0]; sol=A\b ...

10 years ago | 0

| accepted

Answered
how to calculate all local minimums ?
Hint: (x,y) local minimum -> gradient f(x,y) = 0 So solve df/dx(1) = 0 and df/dx(2)=0 for different starting values for x(...

10 years ago | 0

Answered
Iteration to convergence for drag coefficient - is there a better method?
Why don't you simply solve your equation for CD ? CD = 4/3*d/v^2*g*(rhoP/rho-1) Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Solving a system of nonlinear equations with bounded variables
Didn't you forget to set a comma after the equation A_rod*x_dot == Q_b - Q_v - Q_lp ? Best wishes Torsten.

10 years ago | 0

Answered
left riemann sum integration
Try x1 = 1; x2 = 3; f=@(x) 2*x.^5 - 3*x.^2 - 5; n=500; dx=(x2-x1)/n; summe=0.0; for i=1:500 summe=s...

10 years ago | 1

| accepted

Answered
How can I solve for 'q' in this equation?
Are you able to evaluate L(q) for a given value of q ? If this is the case, you can use MATLAB's "fzero" to determine the roo...

10 years ago | 0

| accepted

Load more