📄 pwmplot2.m
字号:
% Matlab script file to plot PWM output
% This file plots a two PWM signals
% File: pwmplot2.m
% Created 12/25/95, DM Auslander
load pwm_out.txt % Read in the general output file
nv = length(pwm_out);
subplot(4,1,1);
plot(pwm_out(:,1),pwm_out(:,2),'k');
ylabel('Duty Cycle');
subplot(4,1,2);
plot(pwm_out(:,1),pwm_out(:,3),'k');
axis([0 pwm_out(nv,1) 0 1.5]);
ylabel('PWM Out');
subplot(4,1,3);
plot(pwm_out(:,1),pwm_out(:,4),'k');
ylabel('Duty Cycle');
subplot(4,1,4);
plot(pwm_out(:,1),pwm_out(:,5),'k');
axis([0 pwm_out(nv,1) 0 1.5]);
xlabel('Time'); ylabel('PWM Out');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -