Message Boards Message Boards

0
|
2025 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Integral of outputs of StateResponse[ ]?

Posted 2 years ago

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]

POSTED BY: Salman Zaffar
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