Simulink: Specifying trajectory

Posted by stanigator on Stack Overflow See other posts from Stack Overflow or by stanigator
Published on 2010-04-22T22:54:21Z Indexed on 2010/04/24 1:13 UTC
Read the original article Hit count: 349

Filed under:
|
|

I would like to use jtraj to specify a trajectory in a Simulink model. Below are what I attempted to retrieve in the command prompt:

Q0 = [1 1 0];
Q1 = [1+0.5*cos(2*20) 1+0.5*sin(2*20) 0];
t = 0:0.1:20;
[Q, Qd, Qdd] = jtraj(Q0, Q1, t);

However, I don't know how to include such trajectory data in the Simulink model easily. Any comments?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about simulink