设y=10cos(Nt+π/6),令N分别为2,4,6,8,绘制t=0~10区间的t-y曲线,取时间间隔为0.1,并将4条曲线分布在一个图形窗的2´2=4个子图中。则下列哪个程序不正确?
A.for N=2:2:8; t=0:0.1:10; y=10*cos(N*t+pi/6); subplot(2,2,N/2) plot(t,y) end
B.for N=2:2:8; t=linspace(0,10,101); y=10*cos(N*t+pi/6); subplot(2,2,N/2) plot(t,y) end
C.for N=2:2:8; t=0:0.1:10; y=10cos(Nt+pi/6); subplot(2,2,N/2) plot(t,y) end
D.t=linspace(0,10,101); for N=2:2:8; y=10*cos(N*t+pi/6); subplot(2,2,N/2) plot(t,y) end
- · 有4位网友选择 A,占比44.44%
- · 有3位网友选择 D,占比33.33%
- · 有1位网友选择 B,占比11.11%
- · 有1位网友选择 C,占比11.11%