Answered
Equations to Matlab code
It is not possible simply to output (VI,Vw) given (TL,TR). As input you need (VIold,Vwold,Vwdotold,dt,TL,TR). The output V...

12 years ago | 0

| accepted

Answered
Need some help, Four coupled ODEs with ode45
Use the for-Loop in the call to ode45, not in fntest: For k=1:5 II=0.05*k; [t,xy] = ode45(@(t,y)fntest(t,y,II),[0 4],[0...

12 years ago | 0

Answered
Maximize function with constraints using fmincon
1. M3 is not defined in objectfun1 ; 2. w'*M3*kron(w,w) does not look like a scalar value to me ; 3. Better delete the bla...

12 years ago | 0

| accepted

Answered
Exponential Curve fit data a & b
a=exp_curve.a; b=exp_curve.b; should give you the values of the fitting parameters. Best wishes Torsten.

12 years ago | 0

| accepted

Answered
Solution of Laplace equation for a regular hexagon
http://de.mathworks.com/help/pde/index.html;jsessionid=2b1ea871d0971b1076b238044dac Best wishes Torsten.

12 years ago | 0

Answered
Equations to Matlab code
If the right-hand sides of your equations does not depend on t, the solution to your differential equations is explicitely given...

12 years ago | 0

Answered
for loop - Error Attempted to access y(30); index out of bounds because numel(y)=2.
y=zeros(101); b=randn(101,1); y(1)=100; for t=1:29 y(t+1)=y(t)*(a+0.0001*b(t,1)); end for t=30:32 %...

12 years ago | 1

Answered
Kinetics - Matlab System of ODEs Plot Resulting Number of Moles Over Time
Take a look at the examples provided under http://de.mathworks.com/help/matlab/ref/ode45.html Best wishes Torsten.

12 years ago | 0

Answered
Maximize expected return with constraints
f=-[0.0055; 0.0063; 0.0080; 0.0060; 0.0037; 0.0035; -0.0028; 0.0071; 0.0055; 0.0028]; Aeq=[1 1 1 1 1 1 1 1 1 1]; beq=[1]; ...

12 years ago | 0

| accepted

Answered
Maximize expected return with constraints
If the mean vector has the same entries at all positions, then the answer is correct ... Best wishes Torsten.

12 years ago | 0

Answered
delay differential equations using DDE23
I guess that usually the controls at time t will be autonomous or a function of the state variables at earlier times. Thus DD...

12 years ago | 0

Answered
Question regarding ode45 utilization
Replace x(1),x(2),theta(1) and theta(2) in MyStates by y(1),y(2),y(3) and y(4). Best wishes Torsten.

12 years ago | 0

Answered
Calculating difference of unequal vectors
help interp1 Best wishes Torsten.

12 years ago | 0

| accepted

Answered
How to use ode23s to solve heat equation
I guess numerical methods are not adequate if Dirac-Delta function is used as initial condition. You should look up the analy...

12 years ago | 0

Answered
Calculate Jacobian for system of nonlinear Equations
What about J=subs(J,[x1,x2,x3,x4],[0.5,0.5,3,5]); ? Best wishes Torsten.

12 years ago | 0

Answered
Integration of incomplete beta function
Check whether the error remains if you replace betainc(0.7./z,0.37,0.4) by betainc(min(1,0.7./z),0.37,0.4) Best wish...

12 years ago | 0

Answered
i m getting error undefined function or method "zero" for input argument of type double?help!
Use "zeros" instead of "zeroes" Best wishes Torsten.

12 years ago | 1

Answered
How to convert an equation from z-plane to w-plane in MATLAB
help subs Best wishes Torsten.

12 years ago | 0

Answered
Assume that the random variable X follows a uniform distribution given , fx(x)=1/20 for -10<x<10.if Y=2*(X^4) plot fy(y).
Y=2*(-10+20*rand(10000,1)).^4; H=histogram(Y,'Normalization','probability'); Best wishes Torsten.

12 years ago | 0

Answered
Assume that the random variable X follows a uniform distribution given , fx(x)=1/20 for -10<x<10.if Y=2*(X^4) plot fy(y).
The density function for Y is given by f_y(y)=1/80*(y/2)^(-0.75), if 0<y<20000 f_y(y)=0 else So if you plot this functi...

12 years ago | 0

| accepted

Answered
Newton Raphson on Mathlab
As Matt already mentioned, neither MATLAB's "fzero" nor MATLAB's "roots" uses N-R. So it's difficult to compare the two metho...

12 years ago | 0

Answered
how to find euclidean distance for 3 vectors
What is the Euclidean distance for 3 vectors ? I only know the Euclidean distance for 2 vectors. Or do you mean the three ...

12 years ago | 0

Answered
How to solve this nonlinear equations ?
help fsolve Best wishes Torsten.

12 years ago | 0

Answered
Fortran to matlab code
If you mean I=-(N+1):(N+1) then shift the indices by N+2 for the MATLAB application. Then in_Matlab I will be I=1:(2*N+...

12 years ago | 0

| accepted

Answered
Solving nonlinear system of equations without defining a function
For simple problems, you could use a function handle: F=@(x)(x.^2-1); x0=0; [x,fval] = fsolve(F,x0); Best wishes ...

12 years ago | 0

Answered
Using bvp4c to solve a fourth order nonlinear differential equation with 2 boundary conditions
I calculated the solution for xright = 5.8e-6. The solution components become so small (in the order of 1e-23 for y(1)) that ...

12 years ago | 0

Answered
fmincon is giving error
As general solution for your above linear system I get x1 arbitrary x2=x1+1.31285 x3=-0.5*x1-0.567175 x4=-0.5*x1+0.2...

12 years ago | 0

Answered
Using bvp4c to solve a fourth order nonlinear differential equation with 2 boundary conditions
My solver solves your ODE without Problems (see the attached file). Best wishes Torsten.

12 years ago | 1

Answered
Using bvp4c to solve a fourth order nonlinear differential equation with 2 boundary conditions
You should at least start with an initial guess that is consistent with the boundary conditions you impose, e.g. [0 0 0 0]. B...

12 years ago | 0

Answered
fmincon is giving error
Define your linear and nonlinear equations as _constraints_ for fmincon, not as parts of the objective function. For the obje...

12 years ago | 0

| accepted

Load more