is it possible to use step for a state space dynamic system with multi input?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muna Shehan
am 20 Apr. 2017
Bearbeitet: Muna Shehan
am 22 Apr. 2017
Hi all I have a dynamic system with A, B, C, and D that identify the state space model, this system has two inputs one is a constant value while the other is a vector with data that changes with time. can i use step function for two input channel or can I identify the two inputs directly to B and C matrices. Thanks in advance
A = [0 1 0 0;a1 a2 a3 a4;0 -1 0 1;0 a5 a5 a7];
B = [-1 0 0 0]';
C = [1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 1; 0 -1 0 1];
D = 0;
q = ss(A,B,C,D);
where a1,....., a7 are a constant values.
0 Kommentare
Akzeptierte Antwort
Sebastian Castro
am 20 Apr. 2017
For a 2-input system, you can say:
opts = stepDataOptions('InputOffset',[1 0],'StepAmplitude',[0 2])
step(sys,opts)
This means that the first input is a constant value (offset 1, amplitude 0), and the second input is a step that starts at 0 and ends at 2.
Alternatively, you could use the lsim function to define your own input vector and have it do whatever you'd like.
Sebastian
7 Kommentare
Sebastian Castro
am 22 Apr. 2017
You are attempting to use a variable mu which you didn't define (you defined mus)... instead, it finds a built-in function mu.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Passivity and Sector Bounds finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!