Text that represents latitude or longitude angles, specified as a character vector,
a string scalar, a cell array of character vectors, or a string array.
Specify angles in degrees-minutes-seconds using one of the formats in this table.
Specify positive latitudes using N, negative latitudes using
S, positive longitudes using E, and negative
longitudes using W.
Format
Example
Use ° for degrees, ' for minutes, and
" for seconds.
"123°30'00""W"
Use d for degrees, m for minutes, and
s for seconds.
"123d30m00sW"
Use - to separate degrees, minutes, and seconds.
"123-30-00W"
Omit symbols that separate degrees, minutes, and seconds (packed DMS). This
format does not support fractional seconds.
"1233000W"
When str contains more than one angle, you can use more than
one angle format.
Specifying directions by using positive (+) or negative
(-) signs is not supported.
Angles in degrees, returned as a numeric scalar or numeric column vector. If
str is a character vector or string scalar, then
angle is a numeric scalar. If str is a cell
array of character arrays or a string array, then angle is a
numeric column vector with the same number of elements as
str.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.