close all; drawnow; clc; figure; hold on; plot( 0:4, 0:4, '-' ); offset=0.07; plot( 0, 0, 'o', 'markerfacecolor', 'k' ); text( 0+offset, 0, '1' ); plot( 1, 0, 'o', 'markerfacecolor', 'k' ); text( 1+offset, 0, '2' ); plot( 1, 1, 'o', 'markerfacecolor', 'k' ); text( 1+offset, 1, '3' ); plot( 2, 0, 'o', 'markerfacecolor', 'k' ); text( 2+offset, 0, '4' ); plot( 2, 1, 'o', 'markerfacecolor', 'k' ); text( 2+offset, 1, '5' ); plot( 2, 2, 'o', 'markerfacecolor', 'k' ); text( 2+offset, 2, '6' ); plot( 3, 0, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 0, '7' ); plot( 3, 1, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 1, '8' ); plot( 3, 2, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 2, '9' ); plot( 3, 3, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 3, '10' ); xlabel( 'n' ); ylabel( 'k' ); axis( [-0.2, 4, -0.2, 4 ] ); saveas( gcf, '../../WriteUp/Graphics/Chapter11/sum_in_k_first', 'epsc' ); figure; hold on; plot( 0:4, 0:4, '-' ); offset=0.07; plot( 0, 0, 'o', 'markerfacecolor', 'k' ); text( 0+offset, 0, '1' ); plot( 1, 0, 'o', 'markerfacecolor', 'k' ); text( 1+offset, 0, '2' ); plot( 1, 1, 'o', 'markerfacecolor', 'k' ); text( 1+offset, 1, 'N+1' ); plot( 2, 0, 'o', 'markerfacecolor', 'k' ); text( 2+offset, 0, '3' ); plot( 2, 1, 'o', 'markerfacecolor', 'k' ); text( 2+offset, 1, 'N+2' ); plot( 2, 2, 'o', 'markerfacecolor', 'k' ); text( 2+offset, 2, '2 N+2' ); plot( 3, 0, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 0, '4' ); plot( 3, 1, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 1, 'N+3' ); plot( 3, 2, 'o', 'markerfacecolor', 'k' ); text( 3+offset, 2, '2 N+3' ); xlabel( 'n' ); ylabel( 'k' ); axis( [-0.2, 4, -0.2, 4 ] ); saveas( gcf, '../../WriteUp/Graphics/Chapter11/sum_in_n_first', 'epsc' );