%WAVEFORM2 Waveform Database Generator (Version 2) Data Set
%PRTools dataset import from UCI, 5000 objects, 40 features, 3 classes
%
%  A = WAVEFORM2
%
%DESCRIPTION
%This command downloads one of the UCI data sets, converts it into PRTools
%format and stores it locally for future use. Consult the <a href="http://archive.ics.uci.edu/ml/datasets/Waveform+Database+Generator+(Version+2)">related website</a>
%for further information. Please make the appropriate references in
%publications that make use of this dataset.
%
%REFERENCE
%Breiman,L., Friedman,J.H., Olshen,R.A., & Stone,C.J. (1984).
%Classification and Regression Trees. Wadsworth International
%Group: Belmont, California. (see pages 43-49). 
%
%SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>

function [a,b] = waveform2

% UCI data is Z-compressed. No Matlab command found for uncompressing.
% Load zipped data from PRTools.
url = 'http://37steps.com/data/prdatasets/waveform-+noise.zip';
a = pr_download_uci('Waveform+Database+Generator+(Version+2)',url);
a = setname(a,'Advanced Waveform Data');

