From: Justin Foley on
Good Afternoon all,

I really hope somebody can discern what may be going wrong with my data importation. I have been using matlab for a few weeks to analyze and graph data and I have been utilizing the importdata command to take the data out of my text file. These files have 2 lines of header and ~3000 rows of 2 column data. My program simply takes those two columns and graphs them. Now up until yesterday this command worked fine for all of my files but with my latest data it simply thinks it is a one column matrix. The program will still open my files from prior to yesterday but the files from yesterday it does not analyze correctly. For your information the data set consists of space delimited columns with an additional space before the first column.

I have also tried to use dlmread to get the data and plot and when I do that it states I am trying to reference a field of a non-structure array. Perhaps these two things mean something to somebody and they can tell me what may be going wrong with my data set. When I do use dlmread and I have it output my variable it does appear to have the two columns correct.

Thank you very much for your time and consideration and I really hope somebody who is well versed, or not well versed in that matter, can help me.

Justin
From: TideMan on
On Feb 8, 10:37 am, "Justin Foley" <justymi...(a)gmail.com> wrote:
> Good Afternoon all,
>
> I really hope somebody can discern what may be going wrong with my data importation.  I have been using matlab for a few weeks to analyze and graph data and I have been utilizing the importdata command to take the data out of my text file.  These files have 2 lines of header and ~3000 rows of 2 column data.  My program simply takes those two columns and graphs them..  Now up until yesterday this command worked fine for all of my files but with my latest data it simply thinks it is a one column matrix.  The program will still open my files from prior to yesterday but the files from yesterday it does not analyze correctly.  For your information the data set consists of space delimited columns with an additional space before the first column.  
>
> I have also tried to use dlmread to get the data and plot and when I do that it states I am trying to reference a field of  a non-structure array.  Perhaps these two things mean something to somebody and they can tell me what may be going wrong with my data set.  When I do use dlmread and I have it output my variable it does appear to have the two columns correct.
>
> Thank you very much for your time and consideration and I really hope somebody who is well versed, or not well versed in that matter, can help me.  
>
> Justin

Have you opened files in Notepad or Wordpad and compared those that
work with those that don't?
There must be some difference.
Alternatively, have you done something really dumb, like named one of
your Matlab routines importdata.m?