clear all
close all

%filename = 'del_mar_102010_9';
%filename = 'del_mar_102010_9_modified';
filename = 'CCE2_3_modified';
%filename = 'CCE2_3';

bom_cmd = ['cable_bom -in ' filename '.cab -out ' filename '.bom -bom'];
system(bom_cmd);
%[seg_name seg_length seg_n_nodes seg_nodes] = read_bom(filename);

cable_cmd = ['cable -in ' filename '.cab -out ' filename '.res -first -last -snap_dt 1 -sample .1 -quit'];

%cable_cmd = [cable_cmd ' > ' filename '.out']
cable_cmd = [cable_cmd ' |  tee ' filename '.out']
system(cable_cmd);

res2mat_cmd = ['res2mat -in ' filename '.res -out ' filename '.mat -lbs -totals'];
system(res2mat_cmd);

load([filename '.mat']);

