Reading CSV file with header and other data.

조회 수: 2 (최근 30일)
shahar kakon
shahar kakon 2022년 10월 31일
답변: Chunru 2022년 10월 31일
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개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by