Data from different sized columns from different files
Mostra commenti meno recenti
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!
Risposte (1)
Image Analyst
il 13 Apr 2023
0 voti
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 Commenti
Atheeb Amjard
il 13 Apr 2023
Image Analyst
il 13 Apr 2023
Neither can we. Why not? Because you keep forgetting to attach them.
If you have any more questions, then attach your 3 data files, and code to read it in with the paperclip icon after you read this:
Atheeb Amjard
il 13 Apr 2023
Modificato: Walter Roberson
il 13 Apr 2023
Atheeb Amjard
il 13 Apr 2023
Image Analyst
il 13 Apr 2023
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_]
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
