I am trying to import numerical data as well as ASCI info that was recently tacked on to the file. I can import the numerical data into a data structure just fine, but MATLAB(R2014a)'s importdata function does not even recognize the written (event) data.
I've looked up questions regarding this issue from a couple years ago but they haven't really been answered. As per those suggestions, I've tried: data_temp = cell2mat(textscan(fopen('P:\FileName))) which brings in an empty matrix, and the 'load' function versus 'importdata'. The load function fails because my data have a different number of columns per row.
So does anyone know a function/work-around to bring in the last few rows of the data?
{I don't want to use the ImportWizard because that requires hand-selection and I am writing a user-friendly code that enters data files via GUI}
Here is an example data file - has rows 1:412 of numerical data and rows 413:437 of event data:
409 0.000000 0.000000 0.000000 0.000000
410 0.000000 0.000000 0.000000 0.000000
411 0.000000 0.000000 0.000000 0.000000
412 0.000000 0.000000 0.000000 0.000000
Event: LHS
Number of Frames: 2
Frame 1: 222
Frame 2: 327
Event: LTO
Number of Frames: 2
Frame 1: 181
Frame 2: 283
Event: RHS
Number of Frames: 2
Frame 1: 169
Frame 2: 274
Event: RTO
Number of Frames: 1
Frame 1: 232
Event: LHS FP
Number of Frames: 1
Frame 1: 222
Event: RHS FP
Number of Frames: 1
Frame 1: 169
Thanks for your time and help!