CSV file that needs to be run through MATLAB?
Show older comments
New to MATLAB. I have been given data in a CSV file that needs to be run through a given MATLAB code and I do not know where to even start. Can anyone help me?
6 Comments
Duplicate:
"Can anyone help me?"
You can help you, by reading the links that Star Strider gave you. They show how to import data. If you tried them and something did not work then please add comments to that question, showing exactly what you tried.
It does not help to simply ask the same question again and again.
Kristine McKay
on 9 Nov 2018
Steven Remington
on 12 Nov 2018
Hi Kristine,
If you are looking to read from a CSV file, I would recommend starting with the "readtable" function in MATLAB. This should be able to read in the data and store it in a MATLAB table so that you can use it.
More information about this function can be found at the link below: https://www.mathworks.com/help/matlab/ref/readtable.html
Kristine McKay
on 12 Nov 2018
Walter Roberson
on 12 Nov 2018
Does the file name really have a comma and space in it? And does it really not have a file extension?
I speculate that you are interested in the column named Value in the file cardio_test_2.csv
T = readtable('cardio_test_2.csv');
T.Value
Kristine McKay
on 12 Nov 2018
Accepted Answer
More Answers (0)
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!