Answered
how to maximize the two-norm of one vector?
Your problem is unbounded in x. Thus it does not have a solution. Best wishes Torsten.

12 years ago | 0

Answered
solving diffrential equation systems
What exactly is the error message ? Best wishes Torsten.

12 years ago | 0

Answered
Help with Colebrook equation and f zero command.
f=@(x)(1/sqrt(x)-2*log10(Re*sqrt(x))-0.8); Re=10000; Delta_Re=200; for i=1:20 fcw(i)=fzero(f,[1e-8 1]); Reynolds(...

12 years ago | 0

| accepted

Answered
How can I vary a vector's element order in an optimization routine?
Use "perms" if the vector length is not that big (<=10). Best wishes Torsten.

12 years ago | 0

Answered
Help with Colebrook equation and f zero command.
Re=10000; f=@(x)(1/sqrt(x)-2*log10(Re*sqrt(x))-0.8); fcw = fzero(f,[1e-8 1]); If you want to determine fcw for differen...

12 years ago | 0

Answered
Locating center of datapoints
The problem you described is different from what I thought at the first glance and looks quite tough to me. You may want to p...

12 years ago | 0

Answered
Solving Complex Coupled Differential Equations
I guess the legend is wrong. Shouldn't it read str = {'$$ x $$', '$$ \dot{x} $$', '$$ y $$', '$$ \dot{y} $$'}; ? Be...

12 years ago | 0

Answered
How to represent this equation in matlab Equation: X(i, j) = aX(i, j − 1) + bX(i − 1, j − 1) + cX(i − 1, j)
% Allocate X-Array X=zeros(101,101); % Set boundary values at lower and left edge for X X(1,1:101)=1; X(1:101,1)=1; ...

12 years ago | 0

Answered
How to represent this equation in matlab Equation: X(i, j) = aX(i, j − 1) + bX(i − 1, j − 1) + cX(i − 1, j)
Your question is unclear for me. Are you in search of a closed-form solution for the above linear 2d-recurrence relation ? ...

12 years ago | 0

Answered
How i can module the diffusion model for time calculation in minerals and melts?
help pdepe Best wishes Torsten.

12 years ago | 0

| accepted

Answered
How to solve DAE system with non-negativity constraint
The usual strategies are: 1. Choose smaller error tolerances for RelTol and/or AbsTol 2. Make a copy of the solution vari...

12 years ago | 0

| accepted

Answered
Newton Raphson on Mathlab
p=[0.5 1 -10 14.742]; r=roots(p); Best wishes Torsten.

12 years ago | 0

Answered
limit to infinity of Left Riemann Sum
Use S_inf = integral(f,left,right) to get the limit. Best wishes Torsten.

12 years ago | 0

Answered
ODE with discrete, external input
Use http://www.mathworks.de/help/matlab/ref/griddata.html if K1 and K2 don't depend explicitly on t, but on the dependent ...

12 years ago | 0

Answered
how can i evaluate e^x using maclaurin expansion?
Don't use factorials explicitly ; define the terms of the Taylor series recursively: x=2; n=10; y=1; summe=y; for...

12 years ago | 0

Answered
orbit equation with ode45
y(2) contains the solution of the ODE -u'' = -u + K.mi*K.gamma/K.l^2 I guess you either want to solve u'' = -u + mi*ga...

12 years ago | 1

Answered
Please help with following code i am new with matlab and don't understand the error
Try k = 2*(2*pi*kb*T/h^2).^1.5*(me*mh)^3/4 instead of k = (2*(((2*pi*kb*T)/(h^2))^1.5)*((me*mh)^3/4)) Best wishes ...

12 years ago | 0

Answered
How to find expected value of normal cdf with a lognormal variable?
Set values for s and m and enter the integral under http://www.wolframalpha.com/input/?i=definite+integral with 0.5*(1+...

12 years ago | 0

Answered
How to find expected value of normal cdf with a lognormal variable?
MATHEMATICA cannot find an analytical expression for the corresponding integral. So I guess you will have to assume numerical...

12 years ago | 0

Answered
Locating center of datapoints
Use lsqnonlin for the problem min: sum_{i=1}^{N} ((x_i-x_c)^2+(y_i-y_c)^2-R^2)^2 where (x_i,y_i) are your data points. ...

12 years ago | 0

Answered
How could I check my solution if I am doing a definite integration please?? I mean,since a definite integral is the limit of a sum so could I write a code using sum to check my results??
I guess your question aims at the integration of the expression f = @(T) ( A*(((N0*sin(omega*T).^2.*(1-2*P(T)./k))+(omega.*c...

12 years ago | 0

Answered
remove noise from data by polynomial fitting
http://www.mathworks.com/matlabcentral/fileexchange/30299-savitzky-golay-smooth-differentiation-filters-and-filter-application ...

12 years ago | 1

Answered
Could anyone help me with tolerances erroe that I got when I am trying to implement an integration please??
Try P=@(T)(1./(1/p0+1/k*(1-exp(-N0/omega*(1-cos(omega*T)))))); instead of P = @(T) interp1(t,p,T); in your code abov...

12 years ago | 0

Answered
Could anyone help me with tolerances erroe that I got when I am trying to implement an integration please??
Of course I'm not sure, but I guess the problem with the tolerances stems from the interpolation of the solution obtained from O...

12 years ago | 0

Answered
Could anyone help me with tolerances erroe that I got when I am trying to implement an integration please??
Use MATLAB's dsolve to solve your ODE analytically instead of ODE45. I guess this will resolve your integration problems. ...

12 years ago | 0

Answered
Sort Matrix by rows
B=(sortrows(A',-2))'; where A is your input matrix. Best wishes Torsten.

12 years ago | 1

Answered
Velocity profile for different z positions and x positions in a microchannel
According to Bruus' notation, keep y fixed and vary z in between 0 and h to get velocity profiles in height direction or keep z ...

13 years ago | 1

Answered
Velocity profile for different z positions and x positions in a microchannel
You will have to modify your code as follows to fit the Bruus formula: { h=100e-6; w=100e-6; l=50e-3; v=2.5e-4; z=0...

13 years ago | 1

| accepted