urlwrite(['http://www.eigenvector.com/data/Corn/corn.mat'],'corn.mat'); % Extracts the corn data set from URL www.eigenvector.com %% warning('off') load('corn.mat') % Loads the data set warning('on') data = [m5spec.data propvals.data(:,1)];% Arranges the data into a matrix: Samples x (Spectral variables + Moisture content) clearvars -except data save corn_dataset % Saves the dataset delete('corn.mat') % Removes the temporary file