How to append values from different files to an array?
Ältere Kommentare anzeigen
Hello, I have a script that reads in a signal and finds the mean intensity from it. I have hundreds of these files and each time I run I would like to add the next mean value to an array. The files are CSV's and the code is edited each time to call a new file.
data=load('600-0.csv'); %filename changed every time and ran again
V=data(:,1);
M=mean(V);
% I have tried using this, however this overwrites each time.
mean=[]
mean = [mean; M]
Thank you for help. I have spent a lot of time trying to find a solution before posting here.
1 Kommentar
KALYAN ACHARJYA
am 1 Mär. 2021
FAQ: Pls check here
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Signal Attributes and Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!