Community Profile

photo

roya afshar


Aktiv seit 2018

Statistiken

  • Thankful Level 1

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


ode45 returns NAN, HOW could I modify it?
clear clc [t,x]=ode45(@eqns,[0.1:0.2:100],[10;0.01;100;-0.0225;10;-0.01]); for i=1:6 plot(t,x(:,i)) hold on end function ...

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
I have a set of second order differential nonlinear equation and I want to solve them together with ode45, how could I write codes for them?or better to say I want to define state transition function for such equations.
function dxdt = eqns(x) one = 7:9; two = 10:12; dxdt = [x(2); x(4)+x(5)+x(1)-(x(1)/((x(1)^2+x(3)^2+x(5)^2)^1.5))+1; ...

mehr als 5 Jahre vor | 0

Frage


I have a set of second order differential nonlinear equation and I want to solve them together with ode45, how could I write codes for them?or better to say I want to define state transition function for such equations.
first three equations all variable and constants are not in vector or matrix form but 4th equation is a 3by1 vector like this: ...

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
solving a differential equation coupling together in matrix and vector form with ode45
clc clear x_1=[1 8 9]; x_2=[2 3 4]; x0=[x_1 x_2].'; tspan = [0 20]; one = 1:3; two = 4:6; n=[0 1 2]'; f = @(t,x) [x(two...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
solving a differential equation coupling together in matrix and vector form with ode45
I have solved 3 second order of differential equations by ode45 and there is no error. as a example: D2x=x+z+Dx+Dy D2Y=Dx+z D...

mehr als 5 Jahre vor | 0

Frage


solving a differential equation coupling together in matrix and vector form with ode45
I have two problem: 1) I used two functions for solving a set of equation not in matrix or vector form but like [x(2);3+x(4)+x...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


solving a differential equation coupling together in matrix and vector form with ode45
I have two problem: 1) I used two functions for solving a set of equation not in matrix or vector form but like [x(2);3+x(4)+x...

mehr als 5 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


what are the inputs of extended Kalman filter?
Could I connect my states in simulink dirrectly to the extended Kalman filter? or I need to write function in m file?

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


I have a nonlinear high dimension system how could I write codes for this system as a function and using ode?my state is a vector with22 arrays.
I have done modelling this system with matlab simulink and I run it well. but the problem is when i want to use extended Kalman...

mehr als 5 Jahre vor | 0 Antworten | 0

0

Antworten