Caught "std::exception" Exception message is: Message Catalog MATLAB:services was not loaded from the file. Please check file location, format or contents..​..........​........i am getting exception when i am running the code instead of correct locatio

조회 수: 17 (최근 30일)
a=('D:\Seismic Data');
b=dir(fullfile(a));
L1=length(b);
k=1;
for i=3:L1
c=dir(fullfile(a,b(i).name));
L2=length(c);
for j=3:L2-3
d=fullfile(a,b(i).name,c(j).name);
e=load(d);
f(k,:)={c(j).name};
%g=sprintf('A%d',k);
t(k,:)=[mean(e) max(e) min(e) var(e)];
%s(k,:)= t
k=k+1;
end
end
%%result save
wq={'Event Name','Mean','Max','Min','Var','Mean ch1','Max ch1','Min ch1','Var ch1','Mean ch2','Max ch2','Min ch2','Var ch2','Mean ch3','Max ch3','Min ch3','Var ch3','Duration','Pre-Event','Post-Event','Hour','Minut','Event Duration'};
xlswrite('D:\Test MATLAB\Myprogram2.xlsx',wq,'sheet1','A1');
xlswrite('D:\Test MATLAB\Myprogram2.xlsx',f,'sheet1','A2');
xlswrite('D:\Test MATLAB\Myprogram2.xlsx',t,'sheet1','B2');

답변 (0개)

카테고리

Help CenterFile Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by