Info
此问题已关闭。 请重新打开它进行编辑或回答。
what does this error message mean? readtalble isn't working and when I included ops it at changes my data from my text file. Why wont it format it exactly as the text file but in a table?
1 次查看(过去 30 天)
显示 更早的评论
function frstarrv()
% %I want to read the line display and look at the first event and use the
% %starting times to locate and graph the apporpriate waveforms
% % %read data of test file into a table
% opts = detectImportOptions('TEST0030_LINEDISPLAY.TXT');
T = readtable('TEST0030_LINEDISPLAY.TXT');
%index the channels in the first event
a = T(4:11,3);
%turn the table type to an array
b = table2array(a);
%convert to string array
c = string(b);
%%call graphData for all of the channels in the event
e = zeros(8,1);
for n = 1:8
%%I need extractBetween because my starting times array has extra two
%%eztra zeros not found in the linedisplay or waveform file name
e(n) = extractAfter(c(n), '.');
dir *e(n)*.csv;
% graphData();
end
end
5 个评论
Walter Roberson
2019-6-16
You are not going to be able to read this file usefully using the table related operations.
You might be able to get somewhere with textscan()
However you would probably have a much easier time reading the file as a large character vector and then using regexp() to pull out pieces of it.
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!