Need to load a file from an open data set a
1 次查看(过去 30 天)
显示 更早的评论
I HATE this system.
All I want to do is load the opensource data file and it won't do anything, doesn't list anything I can load, the fundamentals instructions are useless its just sending me round in circles. Right now I am close to throwing the computer against a wall.
采纳的回答
Star Strider
2023-7-11
Perhaps something like this:
file = "C:\Users\Joyfu\Downloads\SOCR-HeightWeight.csv";
A = readmatrix(file)
Col1 = A(:,1); % First Column
Using readtable will also show any header information, if there are any headers in the file (some .csv files have a header line):
T = readtable(file, 'VariableNamingRule','preserve')
Col1 = T{:,1}; % First Column
Col2 = T{:,2}; % Second Column
If you use readtable, see Access Data in Tables for more information on how to use them, since this is not immediately obvious.
.
1 个评论
Star Strider
2023-7-12
As always, my pleasure!
Also, as a physician, I would never suggest (and have never suggested) that a person ‘calm down’. It is important to validate the person’s very real emotions, understand the problem, and then do my best to help the person solve the problem.
.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!