This is how I would do it.
%this returns the indeces of all nonzero elements of A to elements of X.
X=find(A)
%this makes a new matrix (column vector) that is as long as X but with the elements in A, which have indeces given by the elements of X
B(1:size(X))=A(X)
%Just make a function...
Hello all,
I am a first time poster.
Somehow, a simple issue has gotten way out of hand.
I would like to transform a matrix (n x 2) of ordered pairs from a local coordinate system, where the origin is at an arbitrary corner of the building, to UTM in meters coordinate system.
To accomplish...