0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 function plotSubs( M, subM)
0013
0014 hold on
0015 axis off
0016 plot([0 0],[0 1], 'black');
0017 for b=1:size(M,2)-1
0018 sub=subM(b).subs;
0019 m = size(sub,2);
0020 n = size(sub,1);
0021
0022 t=(b-1:1/(m+1):b);
0023 plot([b b],[0 1], 'black');
0024 x=[M(:,b) sub(:,:) M(:,b+1)];
0025 for i=1:n
0026 for j=1:m
0027 if(j~=m)
0028 plot([t(j) (t(j+1))],[x(i,j) x(i,j+1)], 'r');
0029 else
0030 plot([t(j) (t(j+1))],[x(i,j) x(i,j+1)], 'r');
0031 plot([t(j+1) (t(j+2))],[x(i,j+1) x(i,j+2)], 'r');
0032 end
0033 end
0034 end
0035 end
0036
0037 output_args = 0;
0038 end
0039