New to Matlab so please forgive me. I'm trying to create a matrix, mom, that updates with data from the 4th column of each file that's read:
my_mom_Files = dir(fullfile(myDir,'MRFbeam-Mom-*.txt'));
for k = 1:length(my_mom_Files)
baseFileName = my_mom_Files(k).name;
fullFileName = fullfile(myDir, baseFileName);
mom_data = load(fullFileName);
mom_col = mom_data(:, 4);
The output is as follows:
When I try cell2mat, the size of my matrix changes from 28 x 1 to in the thousands.
Ultimately I would like to print the value found for each file and store it in a matrix. My final goal is to plot these values.