
% Reproduce Example 2

% K0 = 6, K1 = K2 = 3 

K0 = 6;
K1 = 3;
N = K0+K1;
format long

[h0,h1,h2] = wframe(K0,K1); 
figure(1), clf
ShowFrame(h0,h1,h2);
[0:N-1; h0; h1; h2]'

for k = 1:3
   h0 = h0;
   h1 = h1;
   h2 = [0 0 h2(1:N-2)];
   [h1,h2] = makez(h1,h2,N);
   figure(k+1), clf
   ShowFrame(h0,h1,h2);
   [0:N-1; h0; h1; h2]'
end


