Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 16 de Jun. de 2019
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.
Respuestas (0)
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!