I need to read a txt dataset and do some analytics by matlab. the structure of the txt file is like this:
ID Genre AgeScale 1 M 20-26
2 F 18-25
So, I want to load this txt file and build a matrix. I was wondering if someone could help me with this. I used fopen function but it gives me a single array not a matrix with 3 columns.
MATLAB has an interactive data importer. Just type uiimport in the command window. It allows you to:
If it works for you then congratulations, you don't need to waste hours to write an data import script :)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments