请问这个语句表示什么意思?
t=0:0.001:2*pi; %define the array t
switch flag
case 1
y=sin(w*t); %through the value of the popupmenue
case 2 %to caculate the sin, cos, tan,cot
y=cos(w*t);
case 3
y=tan(w*t);
case 4
y=cot(w*t);
end
通过和t相乘,y得出了多个值,形成了一个抛物线图,感觉t像是一个包含了多个值的数组,可是 t=0:0.001:2*pi; 又该怎么理解,0,0.001,2,pi,在这里各表示什么意思?
|