www.gusucode.com > map 案例源码 matlab代码程序 > map/ConvertNumericAnglesToStringMatrixExample.m
%% Convert Numeric Angles to String Matrix % %% % Create a series of values for angles. a = -3:1.5:3; %% % Convert the numeric values in DMS units, using the north-south format. str = angl2str(a,'ns','degrees2dms',-3) %% % These LaTeX strings are displayed (using the |text| function) as follows: x = [.1 .1 .1 .1 .1]; y = [.1 .2 .3 .4 .5]; text(x,y,str)