查看单个帖子
旧 2008-07-03, 22:30   #2
remnant
普通会员
 
注册日期: 2008-04-12
年龄: 46
帖子: 67
声望力: 19
remnant 正向着好的方向发展
默认

引用:
作者: 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
remnant 当前离线   回复时引用此帖