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!