Hey
I'm new to using matlab, however i have an assignment where i have to use matlab to load a maze and then solve it.
I have no idea how to start on this assignment. i'm not asking for you to do it for me but i desperatly need to how to start and roughly what code i should use, eg. loops, arrays or whatever.
Thanks in advance.
Comments
Then I'd make a for that runs down the first column of my newly created array and compare with white spaces, whenever you read a white space you have a new entrance, you can store it's coordinates.
Afterwards my guess is as good as yours tbh, without much thinking, I'd try to figure out an algorithm that senses the values around any given point in that matrix. So like, if you have a white point on x=5,y=5, have it sense for white spots on x=6,y=5; x=6,y=4; x=6,y=6; x=5,y=4; ...
Whenever you stumble on more than one white point, you add another checkpoint, so you can return to this value if you don't come to an end.
I've never had to do this, so again, my guess is as good as yours