clf;
x = (1:5)';
subplot (2,2,1);
 plot (x, rand (numel (x)));
 profile resume
 legend (cellstr (num2str (x)), "location", "northwestoutside");
 profile off
subplot (2,2,2);
 plot (x, rand (numel (x)));
 profile resume
 legend (cellstr (num2str (x)), "location", "northeastoutside");
 profile off
subplot (2,2,3);
 plot (x, rand (numel (x)));
 profile resume
 legend (cellstr (num2str (x)), "location", "southwestoutside");
 profile off
subplot (2,2,4);
 plot (x, rand (numel (x)));
 profile resume
 legend (cellstr (num2str (x)), "location", "southeastoutside");
 profile off

