Mathworks example A* pathfinding algorithm problems

조회 수: 31 (최근 30일)
Rhys Tiplady
Rhys Tiplady 2020년 12월 28일
답변: Gaurav Garg 2020년 12월 31일
Im using Mathworks' A* pathfinding algorithm and attempting to modify it so that it searches through a map that is constantly becoming more available. The ginput command given in the script for inserting start point, end point and obstacles produces them as cartesian coordinates but due to the nature of my surrounding code (I treat the map so to speak as a 2D matrix therefore matrix indecies used), I am not getting the results desired. Is there a way to either insert my points manually as cartesian coordinates or change the format of the matrix to be cartesian based?

답변 (1개)

Gaurav Garg
Gaurav Garg 2020년 12월 31일
Hi Rhys,
You can find a few examples of A* algorithm implentation in MATLAB from here - link1 and link2.
You can make changes in the above File Exchange codes to manipulate the code to insert the points as cartesian co-ordinates.

카테고리

Help CenterFile Exchange에서 Particle Swarm에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by