strs =
angltostr (angles)
¶strs =
angltostr (angles, hemcode)
¶strs =
angltostr (angles, hemcode, unit)
¶strs =
angltostr (angles, hemcode, unit, prec)
¶Convert numerical angle values (Lat and/or Lon) into cellstr text values.
Inputs:
The output is a cell array of strings, one cell for each angle value, the same shape as the input array. To convert it to more Matlab-compatible output, just apply char() to get a char string or char array.
Furthermore, unlike its Matlab sibling angl2str, angltostr will map output values into the [-180, 180] interval and adjust output hemisphere indicators ("E", "W", "N", "S" or just "-" or "+") accordingly. For latitudes this works similarly only if "ns" was specified for hemcode; in all other cases output must be postprocessed manually to map absolute latitudes > 90 degrees into (180-lat) * sign(lat); analogously for radians.
See also: angl2str, str2angle.
Package: mapping