JUK1
comp.m
Go to the documentation of this file.
1 function [d, v] = comp( DTIRPath, VFPath, nodeNum )
2 
3  d = readtable(DTIRPath);
4  v = readtable(VFPath);
5  sametime = false;
6  if d.time == v.time
7  sametime = true;
8  end
9 
10  figure();
11  plot( d.time, d.(nodeNum) ); hold on;
12  plot( v.time, v.(nodeNum), '--' ); hold off;
13  if sametime
14  figure();
15  plot( d.time, d.(nodeNum) - v.(nodeNum) );
16  end
17 
18 end
plot(d.time, d.(nodeNum))
sametime
Definition: comp.m:5
hold on
Definition: comp.m:11
hold off
Definition: comp.m:12
v
Definition: comp.m:4
end figure()
end f_s d