Convert from matrix subscript notation to cartesian coordinate in pixel mode
[cart_x,cart_y] = sub2cart(dim, sub_r,sub_c)
Dimention of the Scilab matrix (first 2 dim of the matrix) in row and column format.
Input could be in sub_r and sub_c pairs (each in m x 1 matrix), or in m x 2 matrix which consist of [sub_r sub_c]
Row index ins ubscript notation
Column index ins ubscript notation
Output in cart_x and cart_y pairs or matrix of [cart_x cart_y] following in the input format
X in cartesian coordinate system
Y in cartesian coordinate system
This function used to convert from matrix subscript notation to cartesian coordinate in pixel mode.