3.0

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

Spider (radar) Chart

by Tal Shir

 

03 Sep 2008 (Updated 04 Sep 2008)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
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.)

13 Jul 2011 Takayuki KUBO  
Please login to add a comment or rating.
Updates
04 Sep 2008

Faster code

Tag Activity for this File
Tag Applied By Date/Time
specialized Tal Shir 22 Oct 2008 10:17:24
plotting Tal Shir 22 Oct 2008 10:17:24
spider Tal Shir 22 Oct 2008 10:17:24
radar Tal Shir 22 Oct 2008 10:17:24
chart Tal Shir 22 Oct 2008 10:17:24
graphics Tal Shir 22 Oct 2008 10:17:24
specialized plot Tal Shir 22 Oct 2008 10:17:24
graph Tal Shir 22 Oct 2008 10:17:24

Contact us at files@mathworks.com