File Exchange

image thumbnail

Radar plot

version (1.91 KB) by David Said
Create a radar plot


Updated 05 Oct 2011

View License

Legends and Line properties can be changed. No toolboxes required

Cite As

David Said (2021). Radar plot (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (12)

Shrey Jain


it can not work correctly. i wrote your small demo and cross with the following error:
??? Attempted to access r(2);
index out of bounds because

Error in ==> pol2cart at 22
x = r(2).*cos(th);

Error in ==> radarPlot at 63
[mx, my] = pol2cart(
th(1, j), 1.1);

Zafar Ali

How to change variables values for x1, x2,....etc with our own variable names?

homa rashidisabet

please help me with the inputs of the function. What is the "varargin"?

henyan deng

Zara Visanji

Hi, How do I change the point names. Currently they read x1 = ..., x2= ... however I need them to be labelled.

Sanjeev Goyal

Thanks for your posting,

I am stuck with the following error:

Not enough input arguments.

Error in radarPlot (line 14)
[M, N] = size(P,varargin);

Christos Galinos

Mr Smart

Sav Deb

I need a help.

How can I set the scale for radar plot to better visualize point positions along a radar axis?

Thank you


David Said

%% A small demo for this file

nPoints = 4;
nDimensions = 6;
P = rand(nDimensions, nPoints);
pointNames = arrayfun( @(i)sprintf('p_{%d}', i),...
1:nPoints, 'UniformOutput', false);

radarPlot(P, 'o:','LineWidth', 1.5, 'MarkerFaceColor', [0,0,0])
legend(pointNames{:}, 'Location', 'Best');
title('Radar Plot Demo');

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!