Answered
Integral2 error message
function [Ingr]=InteEpstu(tvec,uvec,K,de,mu) Ingr=zeros(size(tvec)); for i=1:numel(tvec) t=tvec(i); u=uvec(i); ...

8 years ago | 0

| accepted

Answered
minmax does not work in matlab 2018b
https://github.com/mathause/MATLAB/blob/master/General/datafun/minmax.m

8 years ago | 0

Answered
Index exceeds matrix dimensions.
"db" can not be a matrix of dimension 3 (db(:,1,2)) and of dimension 2 (db(:,3)) at the same time. Use "size" to get the dimensi...

8 years ago | 0

| accepted

Answered
how to use the 'least square fit'?
xdata = 0:0.51:195*0.51; ydata = ...; fun = @(x,xdata)x(1)*sin(x(2)*xdata.^x(3)+x(4)).*exp(-x(5)*xdata)+x(6); x0 = [-6 ,1 ,1 ...

8 years ago | 0

| accepted

Answered
How to fit data with a solution of a non linear differential equation containing multiple unknown coefficient
function main Time = [0,0.0625 0.125 0.1875 0.25 0.3125 0.3750 0.4375 0.5 0.5625 0.625 0.6875 0.75 0.8125 0.875 0.9375 1 1.06...

8 years ago | 0

Answered
How to fit data with a solution of a non linear differential equation containing multiple unknown coefficient
In cases like yours, we always refer to https://de.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting ...

8 years ago | 0

| accepted

Answered
Lineare Optimization Pool of entries for decission variables
If pool_i is the pool for decision variable d_i and the pool contains n possible entries e_i(1),...,e_i(n), define binary variab...

8 years ago | 0

Answered
if command with @(x,t) equation
https://stackoverflow.com/questions/18183648/matlab-check-if-function-handle-is-a-particular-function-or-function-type

8 years ago | 1

Answered
primal-dual interior- point methods for linear problems
Use "linprog" with objective function min: 0'*x.

8 years ago | 0

| accepted

Answered
How to write a function to calculate ODE?
Solve the ODE using Euler's method, e.g., and - instead of returning the solution N - return r*N.

8 years ago | 0

Answered
how to find the shortest distance between two lines in R3 ?
% Line 1 is given as x=x0+lambda*(x1-x0) x0 = ...; x1 = ...; % Line 2 is given as y=y0+eta*(y1-y0) y0 = ...; y1 = ...; ...

8 years ago | 0

Answered
MINIMIZE A FUNCTION WITH CONSTRAINTS
Put the constraints on y and yy in "nonlcon".

8 years ago | 0

Answered
Linear optimization with sums in the objective function
Do you know how to define f if the objective is min: x11*p1 + x12*p1 + x13*p1 + x21*p2 + x22*p2 + x23*p2 ? Define (y1,y2,y3,...

8 years ago | 0

Answered
How to find five unknown parameters of an equation
Use one of MATLAB's fitting tools, e.g. lsqcurvefit. Best wishes Torsten.

8 years ago | 0

Answered
can someone help me ? , something error in my code
f = 200*x./(x+5).*exp(-2*x/30)

8 years ago | 0

| accepted

Answered
How to use fminsearch or fmincon for a multivariable integral function?
[x,fval,exitflag,output] = fminsearch(@(x)F(x(1),x(2)),x0,options);

8 years ago | 2

| accepted

Answered
Sum of the random array cannot reach the upper limit sum
Just copy the answer I gave correctly: randomArray = lb + rand(1,31).*(ub-lb);

8 years ago | 0

Answered
How to random an array of data with upper and lower limits
data = lb + rand(1,32). * ( ub - lb );

8 years ago | 0

| accepted

Answered
Solving System of ODE that includes Algebraic Eqn's
function main y0 = [2; 1; 0; 400]; tspan = [0 10]; Fao = 3.3; Cao = 0.01983; K = 1.6; [t,y] = ode15s(@(t,y)fun...

8 years ago | 2

| accepted

Answered
How to multiply a vector with each column of a matrix
A = [1 4 7 10; 2 5 8 11; 3 6 9 12]; b = [1;2;3;4]; C = bsxfun(@times,A,b.')

8 years ago | 0

| accepted

Answered
Solve the general solution of a Differential equation with boundary conditions
Tell the program which gave you the general solution to additionally incorporate the six boundary conditions.

8 years ago | 0

| accepted

Answered
Numerical solution to an ODE as input to solve another ODE?
Solve dy/dt (= dy/dx * dx/dt) = g(y,x)*f(y,x) dx/dt = f(y,x) together using ODE45.

8 years ago | 1

| accepted

Answered
Error Plotting a Multi-variable Function with Respect to a Single Variable.
x = 0:2*pi/100:2*pi; for i=1:numel(x) y(i) = actomic_form_factor(1, 0, 0, 1, 0, 0, 10000, x(i)); end plot(x,y)

8 years ago | 1

| accepted

Answered
How to calculate the maximum distance between two functions
x = fminbnd(@(x)-(sin(x)-cos(x))^2,0,4*pi) distance = abs(sin(x)-cos(x))

8 years ago | 0

Answered
ode45 keeps saying that my function must return a column vector
I think you mean function main Cars_in = [0 0 0 0 0 4 10 12 8 15 25 53 56 48 24 22 32 18 12 0 0 0 0]; Cars_out = [0 0 0 0 0 ...

8 years ago | 0

| accepted

Answered
Fitting data to integral2 function
x0 = [0.23,5.5,10.5]; th0 = ...; x = lsqcurvefit(@(x,xdata)fun(x,xdata,th0),x0,xdata,ydata) function res = fun(x,xdata,th0)...

8 years ago | 0

Answered
How can I solve this trigonometric equation?
Yes, theta = 2*pi*n where n is any integer. And I guess that theta = acos ( (9 * tan^2(beta) - 1) / (9 * tan^2(beta) + 1...

8 years ago | 0

Answered
tranlsate a matriciel expression in matlab language
R = w.'*C + Rm*w.'*beta; S = w.'*Sigma*w; eqn3 = sum(w)-1.0;

8 years ago | 1

Answered
Differential Equations using eulers method
Yes, you need a loop: n = [5 10 100 1000]; for i=1:numel(n) n_actual = n(i); deltat = 30/n_actual; y(i,1) = 3.0; ...

8 years ago | 0

Load more