Answered
General Beta distribution with in arbitrary limits?
http://www.mathworks.com/matlabcentral/fileexchange/7309-randraw Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Maximum point using fminbnd
Apply fminbnd to -f ; this will give you maxima of the function. Best wishes Torsten.

11 years ago | 1

| accepted

Answered
How to resolve MATLAB 2014a Simulink error "must be monotonically increasing"?
Order Values of BreakpointsForDimension1 in 'pv1/Repeating Sequence/Look-Up Table1' such that value(1)<value(2)<...<value(n)<...

11 years ago | 0

Answered
Warning: Imaginary parts of complex X and/or Y arguments ignored
(1-pi) < 0, so log(1+x) does not return real values. Best wishes Torsten.

11 years ago | 0

Answered
Parameter estimation for an epidemic model
As a guideline, take a look at http://www.mathworks.com/matlabcentral/answers/43439-monod-kinetics-and-curve-fitting There...

11 years ago | 0

| accepted

Answered
Error using ode23 function
Y2=@(t,y)y; Tc = 1; n = 1; P_ss2 = 1; [t_m2,P_m2]=ode113(Y2,[(n-1)*Tc n*Tc],P_ss2); plot(t_m2,P_m2(:,1)) sho...

11 years ago | 0

Answered
How to code in MATLAB for finding the upper limit max temp(Tmax) in the integral ∫(30°C to Tmax) 80*Y*dT = 2.09 × 10⁴? here value of Y will be input by user in GUI
This is equivalent to solving 80*Y*(T_max-30)=20900 thus T_max = 30+20900/(80*Y) But I doubt that this is really wh...

11 years ago | 0

Answered
pdepe - changing I.C 'midstream'
global counter counter=0; ... solold=pdepe(m,@pdefunold,@icfunold,@bcfunold,xmesh,tspanold); uold(1,:) = solold(en...

11 years ago | 0

Answered
how to take difference between two arrays in matlab (Euclidean distance )
D = norm(V1 - V2); Best wishes Torsten.

11 years ago | 0

Answered
Finding the maximum values of four variables and nine participants
1. The first "end" should be behind "joint = 'RKnee';". 2. The MaxT variable only contains the maximum of "TorqueData_RKnee_I...

11 years ago | 0

Answered
Implementing a first order forward difference scheme in MATLAB
fun=@(X,M)(((2+(gamma-1)*M^2)/2)^(-1/(gamma-1)))/((M-1)*(2+(gamma-1)*M)/(2+(gamma-1)*M^2)); gamma=1.4; [X1,M1]=ode45(fun...

11 years ago | 0

| accepted

Answered
Generate random samples from arbitrary discrete probability density function in Matlab
Take a look at the second example under http://de.mathworks.com/help/stats/datasample.html Best wishes Torsten.

11 years ago | 0

Answered
how to code for finding the upper limit (Tmax) in this equation ∫(30 TO Tmax)[80*(1.787+0.003T)dT=2.09
fun=@(T)(80*(1.787+0.003*T)); Tmax=fzero(@(x)integral(fun,30,x)-2.09,[30 31]); Best wishes Torsten.

11 years ago | 0

Answered
Polynomial division by system variable
Try simplify(ynew) Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Convolution of Two Functions
G(T) = integral(-inf,inf)[Y1(W1)*W1(X1+T)]dt makes no sense. W1 is an independent variable in Y1(W1) and becomes a depende...

11 years ago | 0

Answered
Curve fitting using custom model
Chapter 15.5 of http://www2.units.it/ipl/students_area/imm2/files/Numerical_Recipes.pdf Best wishes Torsten.

11 years ago | 0

Answered
Error in the execution of the simultaneous differential equation
<http://www.wolframalpha.com/input/?i=y%27+-+%283y%2B4z%29+%3D+0%2C+z%27+-+%28-4y%2B3z%29%3D0%2C+y%280%29%3D0%2C+z%280%29%3D1> ...

11 years ago | 0

Answered
Set boundaries for norminv output
Use a truncated normal distribution: http://www.mathworks.com/matlabcentral/fileexchange/23832-truncated-gaussian Best wis...

11 years ago | 0

| accepted

Answered
Hello every body. i want to write this nested sigma in MATLAB . Help is hugely appreciated, thanks. :-)
sum=0.0; for h=2:25 for j=1:3 for i=1:4 sum=sum+(X(i,j,h)-X(i,j,h-1))^2; end end end ...

11 years ago | 0

| accepted

Answered
problem with optimisation through lsqcurvefit
Use lsqnonlin instead of lsqcurvefit. It accepts your equation to be implicit in x and y. Best wishes Torsten.

11 years ago | 0

Answered
Non Linear Constraint Optimization Problem Error
4*x(1)*x(1)*x(2))-Li < 0 at the start, thus taking the "sqrt" will result in a complex number. Best wishes Torsten.

11 years ago | 1

| accepted

Answered
Matlab ODEs: unable to meet integration tolerances ( using different types of commands for odes)
If your solution curves all started from 0, MATLAB would not have problems integrating your system because all solution variable...

11 years ago | 0

Answered
Producing random numbers in Matlab?
x=zeros(10); [y,idx]=datasample(1:10,4,'Replace',false); x(idx)=1; Best wishes Torsten.

11 years ago | 1

Answered
Need Help with a Simple Symbolic Equation Solve in Matlab 2015a
Maybe [Z]=solve(abs(k/(k+1i*Z))==1/sqrt(2),Z); ? Best wishes Torsten.

11 years ago | 0

Answered
Is there an elegant way to find various steady-state solutions of an ODE system with a variable parameter?
Set the time derivatives to zero and solve for y(1), y(2) and y(3). My guess is that y(1)=0, y(2)=p(8) and y(3)=0 is the stea...

11 years ago | 0

| accepted

Answered
Unrealistic results from integration
You should check 1/f_0(Tao) = 1*10^-3 * [inf -0.0041 -0,0164 -0.0370 -0.0656 -0.1029] again. I get for the first two v...

11 years ago | 0

Answered
Random Walk Matrix Optimisation
help fmincon Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Multivariable nonlinear curve fitting with equality and inequality constraints
Usually in curve fitting, the objective function is given by fval = sum((x(4)*u.^x(1)+x(5)*u.^x(2)+x(6)*u.^x(3)-v).^2) Be...

11 years ago | 3

| accepted

Answered
How to solve integral within an integral with symbolic limit
syms theta, w, ... spol = 2*cos(theta)^2 + sin(theta)^2/2 + (16*cos(theta)^4 - 24*cos(theta)^2 + 6*sin(theta)^2 + sin(thet...

11 years ago | 0

Answered
Error in the execution of the solution of first ODEs nonlinear equations with imaginary coefficients
syms beta1 beta2 C b1(z) b2(z) sol=dsolve(diff(b1)-1I*beta1*b1==C*b2, diff(b2)-1I*beta2*b2==C*b1, b1(0)==1, b2(0)==0); o...

11 years ago | 0

Load more