From: omegayen on 29 Jun 2010 14:47 Hi, I have a very large text file that has columns of data, however I believe the data is meant to be read in line by line thus as a simple example lets say my data is 0 0 0 0 1 1 2 2 3 3 1 1 I would want to read this in as 0 0 0 0 1 1 2 2 3 3 1 1 how do I do this in MATLAB
From: Andy on 29 Jun 2010 14:55 "omegayen " <omegayen(a)ameritech.net> wrote in message <i0df3u$4of$1(a)fred.mathworks.com>... > Hi, > > I have a very large text file that has columns of data, however I believe the data is meant to be read in line by line > > thus as a simple example lets say my data is > > 0 0 0 0 > 1 1 2 2 > 3 3 1 1 > > I would want to read this in as > > 0 > 0 > 0 > 0 > 1 > 1 > 2 > 2 > 3 > 3 > 1 > 1 > > how do I do this in MATLAB Most ways to load this data will put it into an array. Once you have that: data=[0 0 0 0 1 1 2 2 3 3 1 1]; data = data'; data = data(:);
From: omegayen on 29 Jun 2010 15:17 "Andy " <theorigamist(a)gmail.com> wrote in message <i0dfit$536$1(a)fred.mathworks.com>... > "omegayen " <omegayen(a)ameritech.net> wrote in message <i0df3u$4of$1(a)fred.mathworks.com>... > > Hi, > > > > I have a very large text file that has columns of data, however I believe the data is meant to be read in line by line > > > > thus as a simple example lets say my data is > > > > 0 0 0 0 > > 1 1 2 2 > > 3 3 1 1 > > > > I would want to read this in as > > > > 0 > > 0 > > 0 > > 0 > > 1 > > 1 > > 2 > > 2 > > 3 > > 3 > > 1 > > 1 > > > > how do I do this in MATLAB > > Most ways to load this data will put it into an array. Once you have that: > > data=[0 0 0 0 > 1 1 2 2 > 3 3 1 1]; > > data = data'; > data = data(:); thanks andy
|
Pages: 1 Prev: Very slow refresh of Matlab's windows Next: USB loadcell |