Answered
what it is this meaning
It's a vector starting with the number of columns of the matrix r_ed and counting down to 1 in steps of -1. E.g. if r_ed is (...

11 years ago | 0

| accepted

Answered
How do I split a (2 x n x m) list of doubles into two separate lists of doubles 2 individual (n x m) lists of doubles?
new_list_1(:,:)=original(1,:,:); new_list_2(:,:)=original(2,:,:); Best wishes Torsten.

11 years ago | 0

| accepted

Answered
How to partially differentiate a function with unknown variables
http://de.mathworks.com/help/symbolic/diff.html Best wishes Torsten.

11 years ago | 0

| accepted

Answered
How to find uncertainties of estimated parameters in Levenberg- Marquardt algorithm
If you have the statistics toolbox, use nlinfit together with nlparci and nlpredci. Best wishes Torsten.

11 years ago | 1

Answered
Minimizing least squares regression?
The function to be minimized is F(c1,c2) = (c1*1+c2-4)^2 + (c1*3+c2-5)^2 + (c1*5+c2-(-2))^2 To find the minimum, you wil...

11 years ago | 0

Answered
Rayleigh probability density function
They do not define B=0.5, they just choose B=0.5 as an example. You can choose B whatever you like when calling raylpdf. B...

11 years ago | 0

| accepted

Answered
Trajectories of a non linear control system
Solution is x1(t)=a*sin(sqrt(1.5)*t)+b*cos(sqrt(1.5)*t) x2(t)=sqrt(1.5)*[a*cos(sqrt(1.5)*t)-b*sin(sqrt(1.5)*t)] And n...

11 years ago | 0

Answered
averaging 20 values within 1000 data points
average=zeros(27,50); for i=1:27 for j=1:50 average(i,j)=mean(A(i,(20*(j-1)+1):(20*j))); end end Best wishes...

11 years ago | 0

Answered
I need to write for loop: s=sin(pi/1)+cos(pi/2)+sin(pi/3)+....cos(pi/100)
s=0; for k=1:50 s=s+sin(pi/(2*k-1))+cos(pi/(2*k)); end Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Hi all, I am trying to solve a fourth order differential equation using bvp4c.Below is my code.Can anyone help me to find the mistake in my code for which matlab is showing the following error?Thanks you
function main l=17.6e-3; F=0.026; solinit=bvpinit(linspace(0,30,50),@guess); sol=bvp4c(@(x,y)cantileverode(x,y,l,...

11 years ago | 1

Answered
Hi all, I am trying to solve a fourth order differential equation using bvp4c.Below is my code.Can anyone help me to find the mistake in my code for which matlab is showing the following error?Thanks you
You will have to supply guesses for y, y', y'' and y'''. Your guess function only contains two components. Best wishes ...

11 years ago | 0

| accepted

Answered
How to solve the following differential equation in Matlab?
The formulation y1'=y2 y2'=omega^2*a/b*cos(y1-omega*t)-g/b*sin(y1) and ODE45 will solve your problem. Best wishes ...

11 years ago | 0

Answered
Porblem with ode 45 solver
y(:,1), y(:,2) and y(:,3) are vectors of length numel(t). So your matrix Tab is no longer 3x3. Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Please suggest how i will overcome the error
If x1, x2 and x3 are all non-negative, their sum can never be -31.4429 ... Best wishes Torsten.

11 years ago | 1

| accepted

Answered
ode 45 not enough input argument
function my_ode [T,F]=ode15s(@diff2,[0 100],[10 20 0 333]); plot(T,F(:,1),'-',T,F(:,2),'-',T,F(:,3),'-',T,F(:,4),'-') ...

11 years ago | 0

| accepted

Answered
How to Solve a second order differential equation for variable eta in time domain- with a contained integral over another dummy variable (tau)-
Consider the different numerical methods for Cummins equation explained in http://www.google.de/imgres?imgurl=http://static-c...

11 years ago | 1

| accepted

Answered
Method used in ode15i
http://faculty.smu.edu/shampine/cic.pdf Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Beginner question: Loops in Matlab
Two solutions: theta1=(1-(u-w)-9*23*gamma)./(2*(23*gamma-1))+sqrt(((1-(u-w)-9*23*gamma)./(2*(23*gamma-1))).^2-(-(u-w)-8*23*...

11 years ago | 0

| accepted

Answered
How to get the expected Hessian variance-covariance matrix from vgxvarx?
Spec = vgxset(...,'Qsolve',true); Best wishes Torsten.

11 years ago | 0

Answered
How to save each value from an iterative solution
y(1)=4; x=[1:5]; for i=1:5 y(i+1)=y(i)+x(i); end y=y(2:6); plot(x,y) Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Partial Derivative and its roots
Why do you calculate diff(diff(f,a),b) ? Just for testing ? syms a b n p h g d e r s [sol_a,sol_b]=solve([diff(n*a*b*(1-...

11 years ago | 0

Answered
Solving a Constrained Optimization Problem
Use the constraint f(x) >= 0. Best wishes Torsten.

11 years ago | 0

Answered
Solving two coupled PDEs that are not parabolic with a built-in solver
If you have the NAG Toolbox, use http://www.nag.co.uk/numeric/MB/manual64_24_1/html/D03/d03plf.html Built-in MATLAB solver...

11 years ago | 0

Answered
Generating time vector and sinusoids
X1=A1*cos(2*pi*(4000)*(tt-tm1)); instead of X1=A1*cos(2*pi*(4000))*(tt-tm1); Same for X2. Best wishes Torste...

11 years ago | 0

| accepted

Answered
Why am I getting this error?
This error usually occurs of your problem does not fall in the class of problems pdepe is suited for. The problem class is de...

11 years ago | 0

Answered
solve system of diferential equations. how matlab can use 4) and 5) to solve the system?
Solve 5) for T and insert the expression in 1) - 4). Then use ODE15S to solve 1) - 4). Best wishes Torsten.

11 years ago | 0

| accepted

Answered
Fsolve Matlab Initial-User Error Problem
function main x = 5.5; L = 0; y0 = 10; b = fsolve(@(y)findy(y,x,L),y0); function F = findy(y,x,L) Um = ....

11 years ago | 0

Answered
Euler integration pendulum approximation
For the Euler method, it must read: y(i+1)=y(i)+dt*(-gamma*y(i)-omega^2*x(i)); instead of y(i+1)=y(i)-gamma*y(i)-om...

11 years ago | 0

Answered
How to solve a differential equations system?
Remove the ";" after the syms declaration. Maybe it will also be necessary to replace eqn1 = diff(f(t),t) == 3*f + 4*g;...

11 years ago | 0

Load more