Message Boards Message Boards

GROUPS:

Integral of outputs of StateResponse[ ]?

Posted 3 months ago
317 Views
|
0 Replies
|
0 Total Likes
|

Hi, I have a small question. I am simulating a nonlinear system Nonlinear System

I am interested in plotting the following

Integral

I dont know how to integrate the state x2 according to figure 2. My code is below


Clear[x];
nsys = NonlinearStateSpaceModel[{{  Subscript[x, 2],
         -Subscript[x, 1]*(Pi/2+ArcTan[5*Subscript[x,1]]) -(5Subscript[x,         
           1]^2/(2+50*Subscript[x,1]^2))-5Subscript[x,2]}, {Subscript[x, 1]}}, {Subscript[x, 1], 
               Subscript[x, 2]},]
J= StateResponse[{nsys, {3,-2}},, {t, 0, 200}];
Plot[J, {t, 0, 20},PlotRange->Full]

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract