Joining first (000) and last (359) points on a polar plot?
6 views (last 30 days)
Show older comments
Hi guys, when plotting a polar plot I find that the program does not join the first and last points plotted around the compass. I.e. those at 000 degrees and those at 359. Therefore I end up with a noticable gap between the two if the values are significantly different. This can cause issues particularly when attempting to fill in the data polygon with colour.
Is there any way to instruct MATLAB to join the two points together so that it constructs a complete polygon? I would be extremely grateful as this would resolve several problems later on!
thanks very much for your time in advance!
cheers, Mark.
0 Comments
Accepted Answer
Walter Roberson
on 19 Dec 2011
The easiest way to instruct it to join the points is to repeat the first point after the final point.
polar(r([1:end 1]), theta([1:end 1]))
0 Comments
More Answers (0)
See Also
Categories
Find more on Polar Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!