Answered
Diffusion Model for planetary sample
surf(x,t,u) where x is distance, t is time and u is a three-dimension array with x as first dimension, t as second dimension ...

11 years ago | 0

Answered
Need the MATLAB command for the gvien expression
The integral is equal to (A_I)^2*(0.5*66.7+sin(2*w*k*66.7)/(4*w*k))+2*A_I*A_Q*cos^2(w*k*66.7)/(2*w*k)+A_Q^2*(0.5*66.7-sin(2*w...

11 years ago | 0

| accepted

Answered
How to use matlab to solve ordinary differential equations with coupled intermediate variables inside?
Add A and B as algebraic variables to your ODE system. To determine A and B, add the equations A-f(X1,X2,u,B)=0 B-g(...

11 years ago | 0

Answered
Newton Raphson loop for backward Euler
You use a simple fixed-point iteration to get y(i+1), no Newton-Raphson. Best wishes Torsten.

11 years ago | 0

| accepted

Answered
How to minimise a function with three input arguments in least squared sense in MATLAB ?
x0, lb and ub are not necessarily scalars, but can also be vectors of length 3 ... Best wishes Torsten.

11 years ago | 0

Answered
Multiplying Function Handles quad
f3 =@(w)bb(w).*cc(w); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
is it possible that LSQNONNEG gives multiple answers?
At least you should get that ||C*x-d||_2 is equal for all the solutions you get from lsqnonneg. If this is not the case, some...

11 years ago | 0

Answered
How can a constrained minimization can be done fmincon? Can u provide me a simple example?
Look at the example provided under http://de.mathworks.com/help/optim/ug/fmincon.html and those included in the MATLAB doc...

11 years ago | 0

Answered
Solving a matrix equation?
Look at 5.1.10 under http://www.math.uwaterloo.ca/~hwolkowi//matrixcookbook.pdf for a solution. Enter help kron ...

11 years ago | 0

| accepted

Answered
Constraint in optimization problem
x(i) + x(i+1) <= 1 Best wishes Torsten.

11 years ago | 0

Answered
Max value of a fit
f=fit(x,y,'poly5'); c = coeffvalues(f); cd = polyder(c); roots(cd); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
How to use various material properties in a PDE model
Cited from the documentation: You can specify the coefficients for each subdomain independently. This makes it easy to specif...

11 years ago | 0

Answered
Lognormal fitting with 10-base
If you are still interested in an answer to your question: (mu)^= 1/n * sum_{i=1}^{n} Log10[x_i] and (sigma^2)^ = Ln[1...

11 years ago | 0

| accepted

Answered
implementation of iterative function
n=...; p=...; q=...; x0=...; f=@(x)(1-2*q)*(x-q)/(p-q)+q; for ii=1:n xnew=f(xold); xold=xnew; end B...

11 years ago | 0

| accepted

Answered
Coupled ODE-PDE systems, sovler?
There is no ready-to-use solver for a coupled ODE-PDE - system. You will have to go the way you already tried: discretize the...

11 years ago | 1

Answered
odes with variable coefficients
Formally, everything looks fine. Of course we don't know if your underlying equations are correct. Are you sure ODE45 can ha...

11 years ago | 0

Answered
PDEPE solver with x-dependent diffusion constant
The diffusion coefficient is under the d/dx-operator - so how can you put it in the c-array ? You must define f=Diff*DuDx whe...

11 years ago | 0

| accepted

Answered
Newton method for nonlinear equations
You don't need to write the above lines in the command window - just execute the code above. Can you output x and f(x) in th...

11 years ago | 0

| accepted

Answered
Lognormal fitting with 10-base
What is the underlying probability density function for a lognormal fitting with 10-base ? Best wishes Torsten.

11 years ago | 0

Answered
calculating the area under curve using cuntrapz or any other syntax
First use cumtrapz as usual, then use interp1 on the output array. Best wishes Torsten.

11 years ago | 0

Answered
How to compute Mutivariable integration in Matlab ?
help trapz Best wishes Torsten.

11 years ago | 0

Answered
How to integrate between a defined and an undefined limit
syms x xend a=int(x+5*x^2,0,xend); Best wishes Torsten.

11 years ago | 0

Answered
Integration in 2D by the midpoint rule
fun=@(x,y)log(1+x+y)*beta(x,2.5,3.0)*beta(y,2,4.5); n = 10; h = 1/n; x = linspace(0,1,n+1); y = linspace(0,1,n+1);...

11 years ago | 1

Answered
complex contour integral ...plz help me
fun=@(z)(x.^3+3)./((x.^2+1).*(x.^2+4)); g1=@(theta)R*cos(theta)+1i*R*sin(theta); g1prime=@(theta)-R*sin(theta)+1i*R*cos(...

11 years ago | 0

Answered
Constained regression 2 - regression model/solver
min: sum_{i=1}^{N} (log((a+b*log(A(i))/P(i)))^2 under the constraint exp(a)*sum_{i=1}^{N} A(i)^b - k = 0 Use fmincon to...

11 years ago | 0

Answered
complex closed contour integral
What about fun=@(z)(z+1)./(z.^3-2*z.^2); g=@(theta)(1+2*cos(theta))+1i*(2+2*sin(theta)); gprime=@(theta)-2*sin(theta...

11 years ago | 0

Answered
What constrained regression function shuld I use?
Choose a and b such that exp(a)*(A(1)^b+A(2)^b+...+A(n)^b)=k Then sum (exp(a)*A(i)^b) = k is satisfied. Now _define_ r(...

11 years ago | 0

Answered
complex closed contour integral
fun=@(z)(z+1)/(z^3-2*z^2); g=@(theta)2+cos(theta)+1i*sin(theta); gprime=@(theta)-sin(theta)+1i*cos(theta); q1 = ...

11 years ago | 1

| accepted

Answered
plz help me ....complex contour integral
fun=@(z)exp(2*z)/(1+z)^4; g=@(theta)2*cos(theta)+1i*2*sin(theta); gprime=@(theta)-2*sin(theta)+1i*2*cos(theta); q1 = ...

11 years ago | 0

| accepted

Load more