Coordinate-Element Number Conversion
by Aman Siddiqi
06 Apr 2005
(Updated 13 Apr 2005)
Converts row, column, dimension to element number & vice versa
|
Watch this File
|
| File Information |
| Description |
coordinate2element_num: Converts row, column & dimension to the element number for the matrix. So row 2, column 3 of a 10X10 is 22.
element_num2coordinate: converts element number 22 of a 10X10 to [2,3]. I only wrote them for up to 3 dimensions. Some one could expand them if they want to. |
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (3) |
| 08 Apr 2005 |
urs (us) schwarz
|
|
|
| 12 Jan 2006 |
Duane Hanselman
|
|
|
| 15 Oct 2009 |
Jan Simon
|
|
|
| Updates |
| 12 Apr 2005 |
added element_num2coordinate |
| 13 Apr 2005 |
small change |
|
Contact us at files@mathworks.com