Answered
how to solve coupled both differential equations and normal equations
Before supplying dA(1)/dt,...,dA(6)/dt for ode45, just evaluate the algebraic variables, e.g. D=6*(A(2)-A(3)). Or what exact...

11 years ago | 0

| accepted

Answered
Is it possible to constrain model output values using a NLS solver?
Maybe fmincon (which accepts nonlinear constraints) is the suitable tool for you, applied to the objective function f=sum_i(y_si...

11 years ago | 0

Answered
Solving First Order PDEs
If 0=z(1)<z(2)<...<z(N)=H is a discretization in z-direction, approximate dT_g/dz (z(i)) = (T_g(z(i))-T_g(z(i-1))...

11 years ago | 0

Answered
how can i solve the problem in line 22
f is a vector. Thus you will have to replace all "*" by ".*", all "^" by ".^" and all "/" by "./" in the power equation. Best...

11 years ago | 0

Answered
How to solve DAE with a varying input / a time-dependent input function?
Maybe syms t delta(t)=0.1222*((t>1.01)&(t<=3.61))-0.1222*((t>4.33)&(t<=7.21)); works ? Best wishes Torsten.

11 years ago | 0

Answered
Solve the differential equation numerically using matlab
fun=@(t,y)2*t*y; Tspan = [0 2]; y0=1; [T,Y] = ode45(fun,Tspan,y0); plot(T,Y(:,1)); Best wishes Torsten. ...

11 years ago | 1

Answered
How fit a parameterised ode solution to experimental data
Take a look at Star Strider's answer under http://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitt...

11 years ago | 0

| accepted

Answered
How to deal with integration variable when using fsolve
Either define z as "syms" and apply "vpa" on the results of "int" or define function handles for the functions to be integrated ...

11 years ago | 0

Answered
for loop maximize variable system of equations PLS help!!
See my answer under http://www.mathworks.com/matlabcentral/newsreader/view_thread/342257 Best wishes Torsten.

11 years ago | 0

Answered
Why am I getting NaN using interp2?
You try to extrapolate in Y-direction. Read the description part for interp2 under http://de.mathworks.com/help/matlab/ref...

11 years ago | 2

| accepted

Answered
Max for intervals in along vector
M=max(reshape(L,[100,10]),[],2); Best wishes Torsten.

11 years ago | 1

| accepted

Answered
explicit solution not found
It's unlikely that you can find an analytical solution for such a complicated system of ODEs. Use one of the numerical ODE-in...

11 years ago | 0

Answered
How to solve this equation in matlab?
syms theta a b c eqn = a*sin(theta)+b*cos(theta) == c; soltheta = solve(eqn,theta) Best wishes Torsten.

11 years ago | 2

| accepted

Answered
How can I fit a logistic regression curve to population data?
xdata=[1 2 3 4 5 6 7 8 9 10 11 12 13 14]; ydata=[9789 9862 9877 9950 10087 10222 10349 10498 10553 10592 10646 10793 10914 ...

11 years ago | 0

Answered
Linear Least Squares With 2 Inequality Constraints
help lsqlin Best wishes Torsten.

11 years ago | 1

Answered
How to do parameter fitting for a system of equations with 3 independent variables?
xdata = horzcat(x1,x2,x3); ydata = horzcat(y1,y2,y3); fun=@(b,xdata) horzcat((b(1)+b(4))*x1./(1+b(1)*x1+b(2)*x2+b(3)*x3)...

11 years ago | 2

| accepted

Answered
if i consider i=1:1000, what does ':' mean in x(i,:)
It means that the first 20 rows of the matrix "error" are set to the vector "errornew". Best wishes Torsten.

11 years ago | 1

| accepted

Answered
Difficulty in implementing equations & performing Function Integration (Error First input argument must be a function handle.)
Your integral equals 0.5*(1+erf(Zb/sqrt(2))) No need to use "integral" in this simple case. Best wishes Torsten. ...

11 years ago | 1

| accepted

Answered
How to interpret mass conservation in MatLab
If your concentrations are in [kg/m^3], check whether dxdt(1)+dxdt(2)+dxdt(3)=0. Then mass conservation should automatica...

11 years ago | 0

Answered
equation from 2D Matrix of data
For most purposes, MATLAB's interp2 will be sufficient. If you really need an equation, you will have to choose an appropriat...

11 years ago | 0

| accepted

Answered
How can i update my vector in an algorithm
a=[2;6;12;4;9;7;16]; a(4)=[]; % fourth element of a is deleted a(2)=[]; % second element of (new vector) a is de...

11 years ago | 0

| accepted

Answered
How do I solve coupled ordinary differential equations with boundary conditions?
function mat4bvp solinit = bvpinit(linspace(0,2,10),[1 0 1e-5 0]); sol = bvp4c(@mat4ode,@mat4bc,solinit); x = ...

11 years ago | 0

Answered
Help for Monte Carlo method
If the errors are independent and you know a formula how they combine (Uc=f(Ua,Ub)), you can independently generate Ua and Ub fr...

11 years ago | 0

Answered
How to make sure each column in a matrix sums exactly to 1?
a = [0:0.0001:1]; b(1:10000) = (0.5/10000); F=randsrc(100,100,[a;0.5 b]); N=100; for n=1:N F(n,n)=0; end ...

11 years ago | 0

Answered
Multiply x sequentially with items of a vector
vder(1)=v(1); for l=2:length(v) vder(l)=vder(l-1)*v(l); end vder=100*vder; v is the original vector, vder is th...

11 years ago | 0

| accepted

Answered
Does anybody know how can solve this equation in Matlab?
func=@(x)a*sqrt(1+x^2)-x*log(x+sqrt(1+x^2)); a=2; xsol=fzero(func,[3 5]); Best wishes Torsten.

11 years ago | 0

Answered
Volume of irregular shape
http://de.mathworks.com/help/matlab/ref/convhull.html Best wishes Torsten.

11 years ago | 1

| accepted

Answered
Find the laplace transform of the piece wise function
L(s)=int_{t=pi}^{t=2*pi}(t-pi)*exp(-s*t) dt For comparison: http://www.wolframalpha.com/input/?i=intgeration&a=*C.intgerat...

11 years ago | 0

Answered
How can I extract a sub matrix B from a matrix A??
B=A(15:35,55:75); You can calculate the limits as 15=(70-66.5)/0.25+1 35=(75-66.5)/0.25 55=(20-6.5)/0.25+1 75...

11 years ago | 0

| accepted

Answered
How can I fit a logistic regression curve to population data?
Use x=[1 2 3 4 5 6 7 8 9 10 11 12 13 14] y=func(x) with func(x)=K*9749*exp(r*x)./(K+9749*(exp(r*x)-1)) K an...

11 years ago | 0

Load more