gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-37/com_test/plot_test.m
function plot_test t=0:0.001:0.04; x=cos(2*pi*50*t); plot(t,x,'r--'); grid on; title('COM 组件绘图例子');