How to convert a grid reference, e.g A6, to a 10X10 matrix row and column index, e.g 1,6 by creating your own function?
조회 수: 7 (최근 30일)
이전 댓글 표시
function [Row,Column]= grid_reference_converter(grid_reference)
댓글 수: 0
답변 (1개)
Andreas Dorner
2019년 6월 24일
편집: Andreas Dorner
2019년 6월 24일
function [Row,Column]= grid_reference_converter(grid_reference)
Row = double(upper(grid_reference(1)))-64;
Column = str2double(grid_reference(2));
end
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!