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 日間)
Timothy Nsubuga
Timothy Nsubuga 2019 年 6 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Timothy Nsubuga
Timothy Nsubuga 2019 年 6 月 15 日
An event is made up of a group of channels that the acoustic emissions system uses to determine the location of the signal. Its the channels in the bracket next to the *Gp #1 line. I want to check every channel in the third column and if it is in the * line with bracket, I would open the waveform .csv file using the time value to the left of that channel( directly left of the channel column) and graph them. I want to be able to get the first arrival time for each channel in each event using a Hilbert transform. Its proven too hard for me so now I'm just trying to take the time values for just the first event since I know what channels make the event by looking at the file. I plan to use these time values to open the corresponding waveform files, and get the first arrival for this first event using a hilbert transfrom. However, even this is not working...
Walter Roberson
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!

Translated by