⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rs.m

📁 用matlab中的simulink模拟的一个rs触发器
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -