I am new to matlab and I have a csv file that I am trying to import; however, I am getting an error:
>> M = dlmread('ADRY_Pre_Leg_WCONT_rms.csv', ' ', 2, 1);
??? Index exceeds matrix dimensions.
Error in ==> dlmread at 150
result = result{1};
Can anyone please explain this to me or describe how I should be importing this file?
The file has 92800 rows and 12 columns; each row is a different variable.
"Jack " <use.text.after.underscore.only_jcannon@csu.edu.au> wrote in message <h14bfp$gvv$1@fred.mathworks.com>...
> I am new to matlab and I have a csv file that I am trying to import; however, I am getting an error:
> >> M = dlmread('ADRY_Pre_Leg_WCONT_rms.csv', ' ', 2, 1);
> ??? Index exceeds matrix dimensions.
> Error in ==> dlmread at 150
> result = result{1};
>
> Can anyone please explain this to me or describe how I should be importing this file?
>
> The file has 92800 rows and 12 columns; each row is a different variable.
>
> Any help is appreciated!
> Thanks!
Actually I have realized that there is a function called csvread. But help says: "The file can only contain numeric values."
"Sadik " <sadik.hava@gmail.com> wrote in message <h14cbt$ag6$1@fred.mathworks.com>...
> Perhaps the function xlsread is going to work.
>
> "Jack " <use.text.after.underscore.only_jcannon@csu.edu.au> wrote in message <h14bfp$gvv$1@fred.mathworks.com>...
> > I am new to matlab and I have a csv file that I am trying to import; however, I am getting an error:
> > >> M = dlmread('ADRY_Pre_Leg_WCONT_rms.csv', ' ', 2, 1);
> > ??? Index exceeds matrix dimensions.
> > Error in ==> dlmread at 150
> > result = result{1};
> >
> > Can anyone please explain this to me or describe how I should be importing this file?
> >
> > The file has 92800 rows and 12 columns; each row is a different variable.
> >
> > Any help is appreciated!
> > Thanks!
Try dragging and dropping your XLS file into MATLAB's Command Window. It will bring up a window and you will be able to specify what delimeter you'd like to use to parse the data.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.