How do I swap out MATLAB sample code for a .csv with my own data?
Specifically, I am looking at the 'Wine Classification' example walks users through how to create a classification nueral network example in MATLAB. It uses the wine_dataset which is pulled directly from MATLAB. However, I imagine the process is similar for other examples
I want to use the same sample code from a CSV instead of the wine_dataset data and run all of the same code. My data is 1,217 records organized as a target column followed by 13 attribute columns. To my knowledge this is exactly how the wine_dataset is organized just with a different number of records.
I have tried csvread, fopen, and a number of other functions.
The original code reads:
[x,t] = wine_dataset;
when I try:
ds = csvread('CellDNA2.csv')
[x,t] = ds;
I get the error message, "Insufficient number of outputs from right hand side of equal sign to satisfy
assignment."
It seems like there should be a simple way to just swap my data in for the sample data but I have spent hours trying to do so and not gotten anywhere. Any help would be greatly appreciated!