Answered
Store result from for-loop and plot
function driver lb = [0,0]; ub = [1,1]; A = [1,1]; b = [1]; Aeq = []; beq = []; x0 = [1/3, 1/3]; for k...

10 years ago | 0

| accepted

Answered
Opposite to horzcat?
string2 = string(1:4); Best wishes Torsten.

10 years ago | 0

Answered
How can i put the Ln function in improper integral?
In MATLAB notation, log(x) is the usual ln(x) (i.e. logarithm to the base e). Best wishes Torsten.

10 years ago | 0

Answered
How can I write the expressions in the attached file in a function file that fsolve used?
The sums in the l-th equation can be written in the form sum(k.*beta.*besselj(0,2*beta.*r).*exp(-2*beta*z(l))) where k, ...

10 years ago | 0

Answered
Implementation of convection dispersion equation
Use MATLAB's pdepe. Best wishes Torsten.

10 years ago | 0

Answered
How to solve a system of non linear equations in MATLAB? (where the unknowns are matrices)
Multiply equation (1) by (A+a*I) from the left. This gives you a linear system of equations to determine matrix A. Once A is...

10 years ago | 1

Answered
Nonlinear equation with factor(s) in vector form
I suggest you call the nonlinear solver for each element of A separately. Best wishes Torsten.

10 years ago | 0

Answered
Solving a set of overdetermined equations
You even get an exact solution for x,y and z: x=y=z=0. Best wishes Torsten.

10 years ago | 1

Answered
Hi I am using ode23s but Matlab returns: not enough input arguments at the line for a1 in the function handle. Why is this happening even if i specified the initial conditions? My code is included below.
Change the call to ode23s as [t,S]=ode23s(@(t,S)EQN41(t,S,A1,A2,A3,B1,w,X1,C,Is,Vt,n,phi_r),[0 n_cycle*2*pi/w],s0); and ...

10 years ago | 0

Answered
how to fit a curve to 3 points automatically?
Maybe something like A=[x1^2 x1 1 x2^2 x2 1 x3^2 x3 1]; rhs=[y1 ; y2 ; y3]; sol=A\b; func=@(x)sol(1)*x...

10 years ago | 0

| accepted

Answered
need urgent help please anybody modify my simple code
http://www.mathworks.com/matlabcentral/answers/92565-how-do-i-control-axis-tick-labels-limits-and-axes-tick-locations Best wi...

10 years ago | 0

Answered
How to get the vector from a Point orthogonal to a Vector
x=(A-C)-dot(A-C,A-B)/dot(A-B,A-B)*(A-B) Best wishes Torsten.

10 years ago | 1

| accepted

Answered
calculate the area (value!) under a cfit curve - curve fitting toolbox
Turn your 8th degree Fourier function to a function handle and use "integral" to integrate the function numerically, _not_ symbo...

10 years ago | 0

Answered
Optimization: find model parameters comparing with experimental data
Reading the description of lsqcurvefit should help: http://de.mathworks.com/help/optim/ug/lsqcurvefit.html Best wishes ...

10 years ago | 0

Answered
Using pdepe to solve heat diffusion between two laysers
You set the initial temperature at the interface to u2i - so you can't expect that pdepe knows better. Best wishes Torsten...

10 years ago | 0

Answered
Using ode45 variables in non-differential equations
Calculate z from the results you obtained for y _after_ your call to the ODE-integrator: [T,Y]=ode45(...); for k=1:6 ...

10 years ago | 0

Answered
Integral of equation with vectors
a = [0 -0.7 -1.4 -1.8 -2.0 -1.9 -1.5 -0.9 -0.2 0.5 1.1 1.6 1.9 1.9 1.6 1.1 0.4]; % accelerations u = [2.6 2.4 1.9 1.1 0.1 -...

10 years ago | 0

Answered
How to solve this ode?
help bvp4c Best wishes Torsten.

10 years ago | 0

Answered
How do I use the finite difference method to solve the non linear ODE?
http://www.wolframalpha.com/input/?i=y''+-+Exp%5By%5D+%3D+0 Best wishes Torsten.

10 years ago | 0

Answered
Weighted curve fitting with lsqnonlin
http://www.mathworks.com/matlabcentral/answers/95519-how-can-i-use-the-lsqnonlin-function-within-the-optimization-toolbox-to-obt...

10 years ago | 0

Answered
how to find the length of two crossed lines?
cos(angle(v1,v2)) = ? / length of v1 Best wishes Torsten.

10 years ago | 0

| accepted

Answered
Errors in ode45 system of equations
Try this: function main [t,y]=ode45(@Second,[0 20],[0 502 305 0 0],options); function dy=Second(t,y) %Initial ...

10 years ago | 0

Answered
Least squares approximation for two circles and two lines
Use fmincon to solve the optimization problem min: sqrt((x*-x1*)^2+(y*-y1*)^2)+sqrt((x*-x2*)^2+(y*-y2*)^2)+sqrt((x*-x3*)^2+...

10 years ago | 0

Answered
I am working with hourly wind speed data for a year (8760 hours) , i want to calculate the probability using Weibull distribution?
http://de.mathworks.com/help/stats/fitdist.html Best wishes Torsten.

10 years ago | 0

| accepted

Answered
system of differential equation
Look at the examples provided for ODE15S: http://de.mathworks.com/help/matlab/ref/ode15s.html Best wishes Torsten.

10 years ago | 0

Answered
How to use matlab to find the optimized matrix with regarding to minimization of Frobenius norm
function main G=zeros(4,4); G(1,1)=0.48; G(1,2)=0.24; G(1,3)=0.16; G(1,4)=0.12; G(2,:)=G(1,:); G(3,:)...

10 years ago | 1

| accepted

Answered
What does the symbol @ in these products ?
http://de.mathworks.com/help/matlab/function-handles.html Best wishes Torsten.

10 years ago | 0

| accepted

Answered
random permutation with no matches to the position
An answer is provided under http://stackoverflow.com/questions/28051975/generating-random-derangements-in-matlab-permutations...

10 years ago | 0

| accepted

Load more