function[z,t0,duration]=get_mic_data(t,d_t,d) %get_mic_data gets data for'C1:IOO-MC_F', 'C1:PEM-AS_MIC, % Example: z = get_mic_data('now',120,60) % start time is 't- d_t' so d_t should be given in seconds. t should be given % as a number like 893714452. d is duration in seconds. get_mic_data saves % data to a file in current directory named 'temp_mic'. You will be asked to % save file as 'mic_(start_time)_(duration)'. duration = d; ifo = 'C1'; pem = [ifo ':PEM-']; ioo = [ifo ':IOO-']; %chans = {[pem 'AS_MIC'],[ioo 'MC_L']}; %chans = {[pem 'ACC_MC1_X'],[ioo 'MC_L']}; chans = {[pem 'AS_MIC'],[ioo 'MC_F']}; t0 = t-d_t % Getting the data z = get_data(chans,'raw',t0,duration); % Making a name which includes start time and duration name = ['mic' '_' num2str(t0) '_' num2str(duration)] % Saving into file in case user forgets to save data save 'temp_mic' z pwd % Requesting user saves data using name above disp('Data has been saved as temp_mic.mat in directory above') disp('Please save data with the above name') %cd /cvs/cds/caltech/users/caryn/data/adaptive_filter/interval/; %Procedure: 1. use get_z_data 2. use miso_filter to fit data 3...