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?

조회 수: 1 (최근 30일)
function [Row,Column]= grid_reference_converter(grid_reference)

답변 (1개)

Andreas Dorner
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

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by