Answered
How to solve 6 nonlinear coupled equations with 6 unknowns by MATLAB?
help fsolve Best wishes Torsten.

11 years ago | 0

Answered
Solving non linear ODE ?
function nlinbvp4c solinit = bvpinit(linspace(0,1,5),[0 0]); sol = bvp4c(@twoode,@twobc,solinit); function dy...

11 years ago | 0

| accepted

Answered
Problem with Ode Solver
1. The vector of Initial values is [12 21]. 2. The plot command must read plot (t,x(:,1)); Best wishes Torsten.

12 years ago | 1

Answered
how to use multiple variable in fsolve and plot the corresponding result
Your integral does not exist since the denominator is 0 at q=0 and hw proportional to q in a neighborhood of q=0. Best wishes...

12 years ago | 0

Answered
how to use multiple variable in fsolve and plot the corresponding result
Please write down the equation you are trying to solve in a mathematical notation. Maybe then someone can help you to solve y...

12 years ago | 0

Answered
Polyfit and polyval plot intercepting zero
http://www.mathworks.com/matlabcentral/fileexchange/35401-polyfitzero Best wishes Torsten.

12 years ago | 5

Answered
How to solve five equations contain five variables using Newton Raphson method?
help fsolve Best wishes Torsten.

12 years ago | 0

Answered
Does anybody know how to obtain an adecuate step for finite differences in Matlab?
I looked into a sophisticated solver. There, Delta_X0(k) = sqrt(Uround*max(1e-5,abs(X0(k)))) where Uround is the SMALL...

12 years ago | 1

| accepted

Answered
what is method inside roots in matlab
From the documentation: The algorithm simply involves computing the eigenvalues of the companion matrix: A = diag(ones(n...

12 years ago | 0

Answered
How can I obtain the derivative of a vector?
I guess you _defined_ the ODEs as acceleration = f(displacement,velocity). So just repeat the calculations of acceleration (y''...

12 years ago | 0

Answered
Pretty simple on fzero
function call X0=4; X=fzero(@f,X0); function y=f(x) delta=60000; %lbs LCG=29; %...

12 years ago | 0

Answered
Iteration of nonlinear equations
http://www.wolframalpha.com/input/?i=system+of+equations&a=*C.system+of+equations-_*Calculator.dflt-&a=FSelect_**SolveSystemOf2E...

12 years ago | 0

| accepted

Answered
How to solve polynomial for a number of values x?
x0=1; for i=1:length(h) X(i)=fzero(@(x)polyval(p,x)-h(i),x0); x0=X(i) end Best wishes Torsten.

12 years ago | 0

| accepted

Answered
Solving System of ODEs using for cycles to reproduce summing
Change the call to ODE45 to [Z,Xout]=ode45(@(z,X)coupled_ODE(z,X,yi,num_species,alpha,beta,J,Pf,uf),zspan,Xin); Best wishe...

12 years ago | 0

| accepted

Answered
how to generate a matrix X(n*k) such that X'X=I_k (Identity matrix with dimension k)?
Set X to the zero matrix, except for ones on the main diagonal (X(i,i)=1 for i=1,...,min(n,k)). Best wishes Torsten.

12 years ago | 0

Answered
Error using mtimes (inner dimension must agree)
E=cosd(theta/2)-sind(alpha).*cosd(beta).*cosd(b); Best wishes Torsten.

12 years ago | 0

Answered
What was that problem?
Try %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function dx=myfun(t,x) p=1; L=1; T=1; ...

12 years ago | 1

| accepted

Answered
Problems with "eig": wrong dimensions
From the documentation: [V,D] = eig(___) returns two optional outputs for any of the previous input syntaxes. D is a diagonal...

12 years ago | 0

Answered
how we can solve a determinant
fun=@(x)det([1-(x-1)^2,1-x^2,1-(x+1^)2; 2^2-(x-1)^2, 2^2-x^2, 2^2-(x+1)^2; 3^2-(x-1)^2, 3^2-x^2, 3^2-(x+1)^2]); sol=fze...

12 years ago | 0

| accepted

Answered
mpower (Input must be scalar and power matrix)
Set a dot (.) before each ^2-operation. Best wishes Torsten.

12 years ago | 0

| accepted

Answered
How to solve a QCLP using fmincon? Is there a faster method?
http://de.mathworks.com/help/optim/ug/linear-or-quadratic-problem-with-quadratic-constraints.html Best wishes Torsten.

12 years ago | 0

Answered
Slope along the curve
Use Savitzky-Golay filtering: http://www.mathworks.com/matlabcentral/fileexchange/30299-savitzky-golay-smooth-differentiation...

12 years ago | 0

Answered
How do i calculate are on Trapezoidal rule?
n is the number of trapezoids or the number of interval points ? Best wishes Torsten.

12 years ago | 0

Answered
dsolve() function yielding errors
1. Define x(t),r(t),s(t),q(t) as symbolic 2. Use "==" instead of "=" in the definition of the equations 3. Use diff(x), d...

12 years ago | 0

Answered
custom fitting / additional boudary conditions on parameters
Use fmincon to be able to account for your constraints. Best wishes Torsten.

12 years ago | 0

| accepted

Answered
Error functions in curve fitting regression problem.
Approximation in l1 norm results in a linear optimization problem: min: sum_{i=1}^{n} eps_i s.c. y_i -...

12 years ago | 0

Answered
non-linear equations Jacobian
The matrix you got _is_ the Jacobian. You just have to replace x by x(1), y by x(2) and z by x(3). Best wishes Torsten....

12 years ago | 0

| accepted

Answered
3rd order non linear differential equation
Set y1=f, y2=f',y3=f'', rewrite your system as y1'=y2 y2'=y3 y3'=-0.5*y1*y3, set oo to a sufficiently large ...

12 years ago | 0

| accepted

Answered
Trouble validating number of parameters in a function
Hint: Use summe=isempty(b1)+isempty(b2)+isempty(h)+isempty(h1)+isempty(l)+isempty(v) Best wishes Torsten.

12 years ago | 1

Answered
Solving an equation of sums
Use "roots" to calculate the real zero x0 of the polynomial p(x)=x^8-(1+c)*x+c. Then y0=1/x0-1 will solve your above equa...

12 years ago | 1

| accepted

Load more