程序运行后老是出现subscript indices must either be real positive integers or logical。我之前用这个程序还能正常运行,有段时间没用matlab,在运行就这样了 返回小木虫查看更多
pz1=zeros(101,901); pz2=zeros(101,901);pz3=zeros(101,451); for i=1:1:100 shuzhimoni; pz1(i,=sig2; pz2(i,=sig3; pz3(i,=fy(1:451); endpz1(101,=mean(pz1);pz2(101,=mean(pz2);pz3(101,=mean(pz3);figure(4)subplot(2,1,1)hold onplot(t,pz1(101,,'g')title('时域信号')xlabel('Time')ylabel('Amplitude')axis(,
下标不是整数或者可能下标不对 检查数组下标
pz1=zeros(101,901); pz2=zeros(101,901);pz3=zeros(101,451); for i=1:1:100 shuzhimoni; pz1(i,=sig2; pz2(i,=sig3; pz3(i,=fy(1:451); endpz1(101,=mean(pz1);pz2(101,=mean(pz2);pz3(101,=mean(pz3);figure(4)subplot(2,1,1)hold onplot(t,pz1(101,,'g')title('时域信号')xlabel('Time')ylabel('Amplitude')axis(,
下标不是整数或者可能下标不对 检查数组下标