rs.m
来自「用matlab中的simulink模拟的一个rs触发器」· M 代码 · 共 34 行
M
34 行
clear;
sim('rsflop');
figure
subplot(3,1,1);
plot(t,S,'r');
xlabel('time(sec)');
ylabel('S input');
axis([0,10,-0.1 2]);
grid on;
subplot(3,1,2);
plot(t,R,'r');
xlabel('time(sec)');
ylabel('R input');
axis([0,10,-0.1,2]);
grid on;
subplot(3,1,3);
plot(t,enable,'r');
xlabel('time(sec)');
ylabel('enable');
axis([0 10 -0.1 2]);
grid on;
figure;
subplot(2,1,1);
plot(t,Q,'r');
xlabel('time(sec)');
ylabel('Q output');
axis([0,10,-0.1,2]); grid on;
subplot(2,1,2);
plot(t,Qp,'r');
xlabel('time(sec)');
ylabel('Q-inverse output');
axis([0,10,-0.1,2]);
grid on;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?