How to create a .mat file and format the data with 5 features to classify using ANN

1 view (last 30 days)
Hello community! I have attached an excel file with 21 columns and 6 rows. The first column can be ignored as it only contains the names. each column represents measurements taken from a patient. There are 20 columns with measurements first 10 representing abnormal and next 10 normal. Each row from 1 to 5 represents the 5 feature values extracted. The last row represents the group -1 meaning cancerous and 1 meaning normal. Now, I want to create a .mat file with 7 variables. namely:
F- first row values
L-second row values
C- third row values
Co- fourth row values
E- fifth row values
grp- sixth row values
and a variable Y which has columns as number of patients and rows with all the five features. I am trying to do something similar to formatting the data discussed here- https://in.mathworks.com/help/deeplearning/ug/cancer-detection.html Please someone guide me through this. Thank you in advance.

Answers (1)

Image Analyst
Image Analyst on 18 Sep 2021
Try the Classification Learner App on the Apps tab of the tool ribbon. Let us know if you can't figure it out.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!