load g.02.mat

subplot(2,2,1)

x=[0:N];

hold off
plot(x,EM_local_min,'-')
hold on
plot(x,EM_equal_ML,'--');
xlabel '# init wrong'
ylabel '%'
title '(a) % local min and ML vs. # init wrong'
axis([0 10 0 100])
text(7,EM_local_min(9)+10,'local min');
text(7,EM_equal_ML(9)+10,'equal ML');

subplot(2,2,2)
hold off
plot(x,iter_avg_g,'-');
hold on
plot(x,iter_max_g,'--');
xlabel '# init wrong'
ylabel 'avg and max iter'
title '(b) avg and max iter vs. # init wrong'
axis([0 10 1 8])
text(7,iter_avg_g(9)+0.5,'avg');
text(7,iter_max_g(9)+0.5,'max');

hold off
