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)
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Numeric Types 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!