3.0

3.0 | 1 rating Rate this file 31 downloads (last 30 days) File Size: 1.87 KB File ID: #21313

Spider (radar) Chart

by Tal Shir

 

03 Sep 2008 (Updated 04 Sep 2008)

Code covered by BSD License  

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

Download Now | 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 (1)
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.)

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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com