Legends and Line properties can be changed. No toolboxes required
David Said (2021). Radar plot (https://www.mathworks.com/matlabcentral/fileexchange/33134-radar-plot), MATLAB Central File Exchange. Retrieved .
Inspired: spider_plot, radar plot, area_spider_plot( data, plotArea )
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
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
numel(r)=1.
Error in ==> pol2cart at 22
x = r(2).*cos(th);
Error in ==> radarPlot at 63
[mx, my] = pol2cart(
th(1, j), 1.1);
How to change variables values for x1, x2,....etc with our own variable names?
please help me with the inputs of the function. What is the "varargin"?
Hi, How do I change the point names. Currently they read x1 = ..., x2= ... however I need them to be labelled.
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);
Sorry,
I need a help.
How can I set the scale for radar plot to better visualize point positions along a radar axis?
Thank you
%% 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');