# HG changeset patch # User Ben Abbott # Date 1327258035 18000 # Node ID 27abe77158d6142f80e73d9df2210f770c1394aa # Parent 48cb466f1418d8e1f7f21ab971cddea44150868e Changes to allow plot demos to be converted and run by Matlab. * text.m, waitbar.m diff --git a/scripts/plot/text.m b/scripts/plot/text.m --- a/scripts/plot/text.m +++ b/scripts/plot/text.m @@ -131,7 +131,8 @@ %! clf; %! ha = {'left', 'center', 'right'}; %! va = {'bottom', 'middle', 'top'}; -%! x = y = [0.25 0.5 0.75]; +%! x = [0.25 0.5 0.75]; +%! y = x; %! for t = 0:30:359; %! for nh = 1:numel(ha) %! for nv = 1:numel(va) diff --git a/scripts/plot/waitbar.m b/scripts/plot/waitbar.m --- a/scripts/plot/waitbar.m +++ b/scripts/plot/waitbar.m @@ -167,7 +167,7 @@ %! h1 = waitbar (0, 'Waitbar #1'); %! h2 = waitbar (0, 'Waitbar #2'); %! h2pos = get (h2, 'position'); -%! h2pos(1) += (h2pos(3) + 50); +%! h2pos(1) = h2pos(1) + (h2pos(3) + 50); %! set (h2, 'position', h2pos); %! pause (0.5); %! for i = 1:4