visualization of the 2-D grid world in MATLAB?

조회 수: 1 (최근 30일)
Ararat Cetinkaya
Ararat Cetinkaya 2020년 5월 25일
답변: SaiDileep Kola 2020년 12월 24일
Hi,
have an Env matrix given below and ı have an agent walking inside of this enviroment. I want to visualize this environment like given below and want to see all of the steps like red circles.
Env = [ -1 -1 -1 -1 -1
-1 -1 -1 -1 -1
-1 -1 -10 1 -10
-1 -1 -10 -1 -1
-1 -1 -1 -1 100];

답변 (1개)

SaiDileep Kola
SaiDileep Kola 2020년 12월 24일
yes as suggested by Darova, use patch function in combination with createGridWorld function to get your custom visualisation.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by