How can I plot a polar plot with varying colour

I have three values azimuth(A), elevation(E) and corresponding data values(V). I plot a polar plot using the command polar(A,V), and the plot I got is given below. But I want to show my third value ie; my data values corresponding to each azimuth and elevation in varying colour. is it possible?
I am attaching the data file herewith kindly looking for your suggestions
Thanking You

답변 (2개)

José-Luis
José-Luis 2017년 9월 12일

1 개 추천

댓글 수: 2

Thank you so much
Please accept the answer that best solves your problem.

댓글을 달려면 로그인하십시오.

Star Strider
Star Strider 2017년 9월 12일

0 개 추천

Please see my Answer to your previous Question: How can I plot 3D polar plot in MATLAB.
D = load('data.txt');
Az = D(:,1);
El = D(:,2);
Rd = D(:,3);
cn = ceil(max(El)); % Number Of Colors
cm = colormap(jet(cn));
figure(2)
polarscatter(Az*pi/180, Rd, [], cm(fix(El),:), 'filled')
grid on

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

태그

질문:

2017년 9월 12일

답변:

2017년 9월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by