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!