how to control amplitude of step in code
172 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
RJS
el 23 de Dic. de 2021
Respondida: Star Strider
el 4 de En. de 2022
I have A B C D matrix
G7 =ss(A,K*B,C,D)
t = [0:0.001:5]';
[y, t, x] = step(feedback(G7,(Ka + 1/s)),t);
plot(t, x(:,3));
here K and Ka are control gains, in my actual plant angle is input to the system but when we perform step command that time it gives output response for one radian.............
.But I want step response for different amplitude ,How to do? ....
0 comentarios
Respuesta aceptada
Star Strider
el 4 de En. de 2022
A = randn(3) % Create System
B = rand(3,1) % Create System
C = rand(1,3) % Create System
D = 0; % Create System
K = rand % Create System
Ka = rand % Create System
s = tf('s');
G7 =ss(A,K*B,C,D)
t = [0:0.001:5]';
opts = stepDataOptions('StepAmplitude',5)
[y, t, x] = step(feedback(G7,(Ka + 1/s)),t, opts);
plot(t, x(:,3));
.
0 comentarios
Más respuestas (1)
Mathieu NOE
el 4 de En. de 2022
hello
simply multiply the result of the (normalized) step (input amplitude = 1) by the actual / desired input amplitude
input_amplitude = 0.3; % your value here
G7 =ss(A,K*B,C,D);
t = [0:0.001:5]';
[y, t, x] = step(feedback(G7,(Ka + 1/s)),t);
plot(t, input_amplitude*x(:,3));
1 comentario
Mathieu NOE
el 4 de En. de 2022
you can do this as soon as the system is linear in (amplitude ) response (LTI systems for example)
Ver también
Categorías
Más información sobre Linear Model Identification en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!