作业帮 > 英语 > 作业

Matlab for循环出现小问题

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/12 18:02:56
Matlab for循环出现小问题
M=4;
x=0:0.1:2*pi; % Set the step length and the number of cycle periods
N=length(x);
b=zeros(N,M);a=zeros(N,M);
g=@(t)sin(t)^2/2;
F=zeros(N,M);
for k=1:N
for l=0:M-1
if x(k,l)>= 0 && x(k,l)
程序里出现了x(1,0)
>> size(x)
ans =
1 63