Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plotGround(V,G,PT,i,speed,steps)
- subplot(1,2,1);
- imagesc(G);
- axis equal;
- hold on;
- plot(PT(:,2),PT(:,1),'ms',...
- 'LineWidth',2,...
- 'MarkerEdgeColor','k',...
- 'MarkerFaceColor','g',...
- 'MarkerSize',8);
- hold off;
- title(['Pedestrians and Ground at step ' int2str(i)]);
- subplot(1,2,2);
- imagesc(V);
- axis equal;
- pause(speed/steps);
- if mod(i,20) == 1
- title(['jo ']);
- fig = subplot(1,2,1);
- imagesc(G);
- colorbar; axis equal; hold on;
- plot(PT(:,2),PT(:,1),'ms',...
- 'LineWidth',2,...
- 'MarkerEdgeColor','k',...
- 'MarkerFaceColor','g',...
- 'MarkerSize',8);
- hold off;
- title(['Pedestrians and Ground at step ' int2str(i)]);
- subplot(1,2,2);
- imagesc(V);
- colorbar; axis equal;
- s = ['plot-step' int2str(i) '.png'];
- saveas(fig, s)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement