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
5 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!