问题描述:
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)
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)
问题解答:
我来补答展开全文阅读