Coordinate-Element Number Conversion
Version 1.0.0.0 (983 Bytes) by
Aman Siddiqi
Converts row, column, dimension to element number & vice versa
1.2K Downloads
Updated
13 Apr 2005
No License
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.
Cite As
Aman Siddiqi (2024). Coordinate-Element Number Conversion (https://www.mathworks.com/matlabcentral/fileexchange/7377-coordinate-element-number-conversion), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Numeric Types in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | small change |