simulation discrete-time model
이전 댓글 표시
I'm studying the linear model of a DC motor. In state-space form, the governing equations above can be expressed by choosing the rotational speed and electric current as the state variables.
So:
Ac = [-b/J k/J; -k/L -R/L];
Bc = [0; 1/L];
Cc = eye(2);
Dc = zeros(2,1);
I expressed all in discrete -time:
sys_TC = ss(Ac,Bc,Cc,Dc);
sys_TD = c2d(sys_TC,Ts);
[A,B,C,D] = ssdata(sys_TD);
Now I shuould simulate the model (TD). In this sense, I simulate the input signal with the function rand. How can I obtain the results of the output and collect them in a matrix?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Time-Domain Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!