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