How can I plot a polar plot with varying colour
31 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167147/image.jpeg)
Thanking You
0 Commenti
Risposte (2)
Star Strider
il 12 Set 2017
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
0 Commenti
Vedere anche
Categorie
Scopri di più su Polar Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!