Writing my data to a table.

3 次查看(过去 30 天)
George Scott
George Scott 2018-4-5
This is probably a really basic fix, but I can't get my data to write to a table. What I have is a for loop that opens a .txt file, performs some functions on it, and returns the result. What I want is for the filename, and end result, to be displayed as a table and I can't seem to get it to work. Anyone know what function would work?
for fileidx = 1 : numel(files)
mydata{fileidx} = importdata(fullfile(folder, files(fileidx).name));
y=fft(mydata{fileidx});
c=xcorr(xf,y);
m=mean(abs(c));
end
  7 个评论
George Scott
George Scott 2018-4-6
Still getting undefined, what exactly do you mean 'out_filename'?
Bob Thompson
Bob Thompson 2018-4-9
out_filename or fileout are variable defined in MATLAB by the script to contain the string of characters of the name of the file you would like to output the results into. It is the same basic concept as files.name except that files.name is a structure class variable and calls your input files, not your output files.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by