Code covered by the BSD License  

Highlights from
Finding optimal path on a terrain

image thumbnail

Finding optimal path on a terrain

by

 

13 Nov 2012 (Updated )

Finding optimal path on a terrain using forward dynamic programming.

drawTerrain(T)
function drawTerrain(T)

% This function draws the terrain map.
%
% manurung.auralius@gmail.com
% 17.11.201
% -------------------------------------------------------------------------

[m,n] = size(T);

[X,Y] = meshgrid(1 : n, 1 : m);
surf(X, Y, T(1 : m, 1 : n));

end

Contact us