Hi, my script plots a mesh grid using:
where 'adj' is the adjacency matrix and 'NC' is the matrix of nodes' coordinates. It works absolutely fine, except for the fact that it doesn't plot the nodes' numbers on the graph.
For example, for a grid like this:
| | |
| | |
I need nodes' numbers to be on the graph and the nodes coordinates matrix is given by:
Where h's and w's are user's inputs.
The script also provides the matrix of nodes numbers, which for this example looks like this:
I believe it is possible to use the above matrices to plot the nodes' numbers, but I don't know how. Any ideas?