Reading CSV file with header and other data.

11 次查看(过去 30 天)
Hi,
I need help to read the file, I am trying to extract the columns for plotting, but I do not know how to get read of the headers and other information out there in the CSV.
and Is it possible to give a code that divides all the data in the last column by 100

采纳的回答

Chunru
Chunru 2022-10-31
T=readtable("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1174693/Without%20Cooling-%20aluminum%20No1.csv", ...
'VariableNamesLine', 2, 'VariableUnitsLine', 3)
T = 158×5 table
Time Force Stroke Stress Stroke_Strain ____ _______ ________ _________ _____________ 0 0.16689 0.024767 0.0095916 0.039312 1 221.87 0.8581 12.751 1.3621 2 373.44 1.6915 21.462 2.685 3 399.09 2.5249 22.936 4.0078 4 394.78 3.3579 22.689 5.33 5 389.2 4.1914 22.368 6.6531 6 384.76 5.0247 22.113 7.9758 7 381.2 5.8581 21.908 9.2986 8 378.15 6.6915 21.733 10.621 9 375.38 7.5248 21.574 11.944 10 372.88 8.3581 21.43 13.267 11 370.43 9.1915 21.289 14.59 12 368.2 10.025 21.161 15.912 13 366.13 10.858 21.042 17.235 14 364.17 11.691 20.929 18.558 15 362.1 12.525 20.81 19.881

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by