File Exchange

image thumbnail

Spider (radar) Chart

version 1.0 (1.87 KB) by

Plots a radar (spider) chart (no need of circle function here)

4 Downloads

Updated

View License

Takes a numeric verctor and cell string vector and plots a spider chart (One data set is allowed)

Comments and Ratings (2)

Takayuki KUBO

John D'Errico

The function was uploaded as radarplot_1.m, so the name is inconsistent with the help or examples. Clearly the author created a second version of this code, but chose to keep both of them. Sorry, but two versions on the file exchange just adds unnecessary dead wood. Delete the older version, and rename this one to have the correct name.

As for this version, the help is marginal, certainly not verbose. It does include an example, which is good. I found error checks, as well as internal comments. All good.

As for the code itself, mlint points out a failure to preallocate several arrays that are then grown inside a loop of known size. This makes for inefficient code in MATLAB. (Use mlint! Pay attention to what it says. This can often greatly improve your code.)

Finally, why is this code any better than the spiderplot utility already on the file exchange? (I'll suggest the answer may lie in the requirement of that code for the statistics toolbox.)

MATLAB Release
MATLAB 7.6 (R2008a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video