Re: textscan and large documents




"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


.



Relevant Pages

  • Re: textscan and large documents
    ... you can repmat a format into existance that will handle ... All other .dat files I have work ... or if this is a common problem with a common ...
    (comp.soft-sys.matlab)
  • Re: textscan and large documents
    ... you can repmat a format into existance that will handle ... quite large, they are regular .dat files, that contain ... or if this is a common problem with a common ... Load works wonderfully! ...
    (comp.soft-sys.matlab)
  • RE: Missing Attachments
    ... as .DAT files. ... This happens all the time when the sender sends the email ... in Microsoft's proprietary Rich Text Format. ... | Content-Class: urn:content-classes:message ...
    (microsoft.public.outlook.general)
  • Re: Character wrapping in posts
    ... What you are seeing is a common problem. ... If you are using Uuencode format, as is common in newsgroups, ... That makes the line 2 characters longer. ... Unless the replier has his line wrap set at least 2 higher than yours, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Winmail.dat inconsistency
    ... >> Winmail .dat files only show up if an Outlook user sends you e-mails in RTF ... >> format. ... RTF and HTML. ...
    (microsoft.public.mac.office.entourage)