3.0

3.0 | 2 ratings Rate this file 23 Downloads (last 30 days) File Size: 1.87 KB File ID: #21313
image thumbnail

Spider (radar) Chart

by

 

03 Sep 2008 (Updated )

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

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
13 Jul 2011 Takayuki KUBO  
03 Sep 2008 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.)

Contact us