MATLAB: Problems running a code on 2012a


When I run astar_test.m on my laptop (running windows 7 and matlab 2010b) it works fine. When I'm running it on my desktop (windows 7 and matlab 2012a) I get
Undefined function 'my_astar' for input arguments of type 'double'.
Error in astar_test (line 26) [my_path_rows my_path_cols] = my_astar(map,[start_row start_col],[goal_row goal_col]);
Any ideas?

Best Answer

  • Add the path where you unzipped to the MATLAB search path.
    addpath yourpath
    or File > Set Path