引用:
作者: yangn2003
t=0:0.001:2*pi; %define the array t
switch flag
case 1
y=sin(w*t); %through the value of the popupm...
|
t = 0 : 0.001 : 2*pi;
定义t的最小值为0, 最大值为2*pi,步进0.001
t = 0 , 0.001, 0.002, 0.003, 0.004, ... , 2*pi;
写成通式:
x = x_min : x_step : x_max
如果写成 x = x_min : x_max则默认x_step为1