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 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
function [Row,Column]= grid_reference_converter(grid_reference)
0 Commenti
Risposte (1)
Andreas Dorner
il 24 Giu 2019
Modificato: Andreas Dorner
il 24 Giu 2019
function [Row,Column]= grid_reference_converter(grid_reference)
Row = double(upper(grid_reference(1)))-64;
Column = str2double(grid_reference(2));
end
0 Commenti
Vedere anche
Categorie
Scopri di più su Numeric Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!