How can I append different mat file data set to be able to do the analysis
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Enoch Sumakpoyaa
am 18 Dez. 2019
Beantwortet: Dinesh Yadav
am 23 Dez. 2019
I am running an experiment on different subjects of 500 trials per subject. I have 20 subjects and data on each subject has been collected and analysed individually.I will like to add or append the saved mat file for each subject in order to have the group statistics. How do I go about it. Find below how I tried to add the first 4 subjects. Thank you
Data_session=[];
filename=('session.mat')
for j=1:size(data,4)
a=load('sess1')
b=load('sess2')
c=load('sess3')
d=load('sess4')
save('session.mat','a','b','c','d')
save('session.mat','a','b','c','d',-'append')
end
0 Kommentare
Akzeptierte Antwort
Dinesh Yadav
am 23 Dez. 2019
Hi Enoch
I am attching a code file based on their answer for your implementation. Hope it helps.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!