Thursday, 29 August 2013

Convert matrix's coordinate to respective array's coordinate

Convert matrix's coordinate to respective array's coordinate

i want to convert matrix's (n, m) coordinates as i, j to respective
array's (n * m) coordinates as k, thus matrix[i, j] will be equivalents to
array[k]. I don't know how to create an expression that makes this
conversion.
Thanks a lot

No comments:

Post a Comment