MATLAB 도움말 센터
Create legend labels for polar plot
createLabels(p,format,array)
createLabels(p,format,array) adds the specified format label to each array of the polar plot p. The labels are stored as a cell array in the LegendLabels property of p.
p
format
array
LegendLabels
example
collapse all
Create a polar plot of cosine powers rotated in 30° increments. Generate a legend label for this plot.
az = [0:359]'; a1 = abs(cosd(az).^5); a2 = abs(cosd(az - 30).^5); a3 = abs(cosd(az - 60).^5); a4 = abs(cosd(az - 90).^5); P = polarpattern([a1,a2,a3,a4],'Style','filled'); createLabels(P,'az = %d#deg',0:30:90)
Polar plot, specified as a scalar handle.
Example: polarpattern
polarpattern
Format for legend label added to the polar plot, specified as a cell array. For more information on legend label format see, legend.
legend
Example: "az=%d#deg"
"az=%d#deg"
Data Types: string
string
Values to apply the format, specified as an array. The values can be an array of angles or array of magnitudes.
Example: [0 15 30 45]
[0 15 30 45]
Data Types: double
double
Introduced in R2016a
add | addCursor | animate | findLobes | replace | showPeaksTable | showSpan
add
addCursor
animate
findLobes
replace
showPeaksTable
showSpan
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
유럽
아시아 태평양
지역별 지사에 문의