MATLAB Answers

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 view (last 30 days)
Andrew Worth
Andrew Worth on 24 Jun 2019
Edited: Andreas Dorner on 24 Jun 2019
function [Row,Column]= grid_reference_converter(grid_reference)

  0 Comments

Sign in to comment.

Answers (1)

Andreas Dorner
Andreas Dorner on 24 Jun 2019
Edited: Andreas Dorner on 24 Jun 2019
function [Row,Column]= grid_reference_converter(grid_reference)
Row = double(upper(grid_reference(1)))-64;
Column = str2double(grid_reference(2));
end

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags


Translated by