How should i write the AVG and standard deviation data into .txt file?
d = 'E:\\ \\ DummyFile\\'; filePattern = fullfile(d, 'Run*'); file = dir(filePattern) n = length(file) for k = 1:n baseFileName = file(k).name; FullFileName = fullfile(d, baseFileName, 'dummy.csv'); temp = readtable(FullFileName, 'ReadVariableNames' true, 'ReadRowsNames' true); x(:, :, k) = temp(:, :); end %Finding Average and Std
Avg = mean(x,3); Standard_deviation = std(x,0,3)
Best Answer