Clear Filters
Clear Filters

Help reading data from CSV file?

1 view (last 30 days)
Kristine McKay
Kristine McKay on 8 Nov 2018
Commented: Kristine McKay on 8 Nov 2018
I have code for data in csv file but do not know how to import and run data through the code.

Answers (1)

Star Strider
Star Strider on 8 Nov 2018
Without knowing more, your best option (if you have R2013b or later) is to use the readtable (link) function.
For details on using table data types, see Access Data in a Table (link).
  7 Comments
Kristine McKay
Kristine McKay on 8 Nov 2018
I have a set of data I need to run through code but I don't know how to put it through the code without doing it manually for each individual. Does that make sense?
Kristine McKay
Kristine McKay on 8 Nov 2018
For example, if person is over 20 code will say this is true. If not over 20 this is false. Display etc

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!