r_list.m 1.31 KB
function r_list
% R_LIST - Produces a detailed list for each experiment: Experiment number
% (exp), test number (test), floe number (nf), wave period (tp), wave
% height (hs) and wave type (wt, regular or irregular).
%
% Syntax:  r_list
%
% Example:
%    r_list
%
% Other m-files required: none
% Subfunctions: none
% MAT-files required: none
%
%
% Author: Dany Dumont, Marie-Pier Marquis
% UQAR/ISMER
% email: dany_dumont@uqar.ca
% Website: http://www.ismer.ca/dumont-dany
% July 2014
% _______________________________________________________________________
%%

rootdir  = '/Users/marie-pier/Desktop/MP/images/multicam';
listfile = [rootdir,'/list.mat'];
cd(rootdir)

load(listfile)

% Initialization 
list1.nf   = nan.*ones(31,1);
list1.wt   = nan.*ones(31,1);
list1.exp  = nan.*ones(31,1);
list1.test = nan.*ones(31,1);
list1.tp   = nan.*ones(31,1);
list1.hs   = nan.*ones(31,1);



list1.nf(1:19)   = 80;
list1.nf(20:31) = 40;
% 1 = regular waves, 0 = irregular waves
list1.wt(1:15)   = 1;    
list1.wt(16:19)  = 0;
list1.wt(20:28)  = 1;
list1.wt(29:31)  = 0;

% Extract data already in another file named 'list'
list1.exp        = list.exp;
list1.tp         = list.tp;
list1.hs         = list.hs;
list1.test       = list.test;

%% Saving data

disp(' Saving data ... ');
save([rootdir,'/list1'],'list1','-v7.3');
disp(' Done! ');


end