matlab代码
%*****prm algorithm*****
clc;clear;close all;
figureimread(..\map\map3.png);
imrgb2gray(figure);
im(im ~ 0)255;
imshow(im);
hold on;
title(prm algorithm);[x,y]ginput(2);
start[x(1),y(1)];
goal[x(2),y(2)];
disp([start:,num2str(start)]);
disp([go…