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)

回答 (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 Center および File ExchangeLanguage Fundamentals についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by