CSV file that needs to be run through MATLAB?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2018-11-12
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
采纳的回答
Andrew Padilla
2018-11-12
编辑:Andrew Padilla
2018-11-12
Kristine,
Have you tried loading in the data using the csvread() function?
If you have a csv file that is named "Test.csv" you can import it to your workspace using the following:
data = csvread('Test.csv');
13 个评论
Walter Roberson
2018-11-13
It has a text column. It cannot be used with csvread() or dlmread(). You will need to use readtable() or textscan()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!