matlab索引超出矩阵维度怎么解决?
clear;clc;XITA=xlsread('D:\data_5.27.xlsx');WIND=xlsread('D:\\data_5.27.xlsx');[m,n]=...
clear;
clc;
XITA=xlsread('D:\data_5.27.xlsx');
WIND=xlsread('D:\\data_5.27.xlsx');
[m,n]=size(XITA);
[p,q]=size(WIND);
H=XITA(1:m,1);
xita=XITA(2:m,6:n);
wind=WIND(1:p,2);
for j=1:n-1
AOD_hourly(j)=0.03*trapz(xita(3:m,j));
end
for j=1:(n-1)/24
AOD_daily(j)=mean(AOD_hourly(j:j*24),2);
end
AOD_hourly=smooth(AOD_hourly,20);
显示索引超出矩阵维度。
出错 Fernald_AOD (line 17)
AOD_hourly(j)=0.03*trapz(xita(3:m,j));
请问是怎么回事呢 展开
clc;
XITA=xlsread('D:\data_5.27.xlsx');
WIND=xlsread('D:\\data_5.27.xlsx');
[m,n]=size(XITA);
[p,q]=size(WIND);
H=XITA(1:m,1);
xita=XITA(2:m,6:n);
wind=WIND(1:p,2);
for j=1:n-1
AOD_hourly(j)=0.03*trapz(xita(3:m,j));
end
for j=1:(n-1)/24
AOD_daily(j)=mean(AOD_hourly(j:j*24),2);
end
AOD_hourly=smooth(AOD_hourly,20);
显示索引超出矩阵维度。
出错 Fernald_AOD (line 17)
AOD_hourly(j)=0.03*trapz(xita(3:m,j));
请问是怎么回事呢 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询