Writing labels & data to a CSV file for face recognition.
4 visualizzazioni (ultimi 30 giorni)
I have done PCA for 21 images of the same person in different conditions. LAst step of the PCA is projection of original data : signals=PC'*data. Size of signals is 21*21, now I want to write this to a CSV file with a label as +1. Please guide me how to do this in matlab. I tried csvwrite but it does not write the labels, only the data.
Walter Roberson il 3 Gen 2014
csvwrite() and dlmwrite() are only for numeric data.
You could try writing the header first using fopen/fprintf/fclose and then asking one of the two to write starting from row 2.
If you are using MS Windows with Excel installed, you can use xlswrite() to write a .csv file, starting with a cell array.