Error in ==> ReadingSOSEdata at 75
data=rdmseed(Aname(1,:));
clear
clc
close all
warning off
origpath=pwd;
nameinput='input_readSOSE.txt';
sampling=100;
dt=1./sampling;
C2VSN=2^24/5;
p = [-22.60000000+17.00000000*i;-22.60000000-17.00000000*i];
z = [0;0];
G=27;
root1='.SW..';
root2='.D.2010.';
[numsta,itbm,itbh,ncomp,pathmio]=readSOSE(nameinput,sampling);
resupath=['Resu' (pathmio)];
cd ('C:\Users\asus\Documents\MATLAB\GFZ_Airport-Hill-b1-S3-top-back')
a=ls; a(1:2,:)=[];
bbb=a(:,11:13);
ncomp(4:5)=[];
[ix]=strmatch(ncomp,bbb,'exact');
bb=[num2str(itbh) num2str(itbm)];
ic=0;
for io=length(ix):-1:1
if str2num(a(ix(io),end-3:end))<str2num(bb) & ic==0
Aname(1,:)=a(ix(io),:);
ic=1;
end
end
data=rdmseed(Aname(1,:));
signal=cat(1,data.d);
npt=length(signal);
timeZ=data(1,1).RecordStartTimeISO;
clear DATA
DATA(:,1)=signal;
DATA(:,1)=DATA(:,1)./(10*C2VSN);
clear signal
cd (origpath)
status = fclose('all');
Foldchk= exist (resupath);
if Foldchk==7
cd (resupath)
elseif Foldchk==0
mkdir (resupath)
cd (resupath)
end
plot (DATA)
return