Re: textscan and large documents
- From: "Titus" <titus.edelhofer@xxxxxxxxxxxx>
- Date: Tue, 22 Jul 2008 21:23:10 +0200
"M@" <matthew.betti@xxxxxxxxx> schrieb im Newsbeitrag
news:c18e281a-f08f-4093-ae27-74cd878452e7@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Jul 22, 12:56 pm, rober...@xxxxxxxxxxxxxxxxxx (Walter Roberson)
wrote:
In article
<55a7c0e5-2ecf-40b8-a2c4-e1fefd251...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
M@ <matthew.be...@xxxxxxxxx> wrote:
It's a real bother, and quite messy to
be copy and pasting %f 200+ times.
repmat('%f',1,200)
Once you have read one line and figured out how many columns
there are, you can repmat a format into existance that will handle
the rest of the file (if it is in the same format, same number
of columns.)
--
"No sincere artist was ever completely satisfied with his labour."
-- Walter J. Phillips
Hello again,
I'm posting in here as the subject is the same but the problem is
slightly different. the files i'm trying to import using textscan are
quite large (~4-7 Mb), they are regular .dat files, that contain
nothing but columns of numbers. For some reason, Matlab does not
recognize the files, not through text scan or when I aimlessly tried
importing using the import wizard. All other .dat files I have work
fine, i was wondering if there is an upper limit on the size of a file
that can be uploaded, or if this is a common problem with a common
solution.
Thanks,
mb
PS. Thank you Titus for your previous help, and thank you Walter for
clarifying.
Hi mb,
if the file contains just columns of numbers, load should do the trick:
data = load('myfile.dat', '-ascii');
Titus
.
- Follow-Ups:
- Re: textscan and large documents
- From: M@
- Re: textscan and large documents
- References:
- textscan and large documents
- From: M@
- Re: textscan and large documents
- From: Walter Roberson
- Re: textscan and large documents
- From: M@
- textscan and large documents
- Prev by Date: Re: constructing a 3D array (using permute?)
- Next by Date: Re: How MatLab Treats Scalars and Vectors
- Previous by thread: Re: textscan and large documents
- Next by thread: Re: textscan and large documents
- Index(es):
Relevant Pages
|