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 vue (au cours des 30 derniers jours)
function [Row,Column]= grid_reference_converter(grid_reference)

Réponses (1)

Andreas Dorner
Andreas Dorner le 24 Juin 2019
Modifié(e) : Andreas Dorner le 24 Juin 2019
function [Row,Column]= grid_reference_converter(grid_reference)
Row = double(upper(grid_reference(1)))-64;
Column = str2double(grid_reference(2));
end

Catégories

En savoir plus sur Numeric Types dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by