% Programmer: Kareem Carr % % Purpose: This program reads data from an input file and writes to \ an output file. % % Example: dopca ('parameteroutput.csv','pca.cav') function dopca (input,output) data=csvread (input); [coeff,score,latent,tsquare]=princomp (data); csvwrite (output,score);