Data from different sized columns from different files

조회 수: 13 (최근 30일)
Atheeb Amjard
Atheeb Amjard 2023년 4월 13일
댓글: Image Analyst 2023년 4월 13일
I have 3 different files, of which I want 3 specific columns from these files put into one file. I then want to find the average of these 3 columns and plot a graph. However the 3 specific columns are of different sizes (different number of rows). How can I do this!

답변 (1개)

Image Analyst
Image Analyst 2023년 4월 13일
What is in the columns? Numbers? Try calling readmatrix for all 3 files. Strings? Try calling readcell
To learn other fundamental concepts, invest 2 hours of your time here:
  댓글 수: 5
Atheeb Amjard
Atheeb Amjard 2023년 4월 13일
I need to get all of the Displacement columns into one table
Image Analyst
Image Analyst 2023년 4월 13일
data3 = readtable("spherification Test3.steps.tracking.csv",'PreserveVariableNames',false);
data4 = readtable("spherification Test4.steps.tracking.csv",'PreserveVariableNames',false);
data5 = readtable("spherification Test5.steps.tracking.csv",'PreserveVariableNames',false);
allDisplacements = [data3.Displacement_mm_; data4.Displacement_mm_; data5.Displacement_mm_]

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by