MATLAB: Network creation-Grid

gridlink properties

How can i create a grid of x and y dimensions, each link joining to adjacent nodes has a speed property?
I want also to search for the shortest path between two different points on the grid, the shortest path is in terms of travel time (travel time is the sum of (the units travelled/speed of each unit).
The path between the nodes should be following the grid;vertical or horizontal between the nodes of grid (no diagonals)

Best Answer