Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to save time loading data from file
Date: Mon, 4 Aug 2008 02:56:01 +0000 (UTC)
Organization: University of Memphis
Lines: 29
Message-ID: <g75r41$lid$1@fred.mathworks.com>
References: <g75abr$40d$1@fred.mathworks.com> <005e6e4d-a014-4c18-bfd1-3ebd502aec08@s50g2000hsb.googlegroups.com> <g75evu$eg$1@fred.mathworks.com> <g75k8l$ppg$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1217818561 22093 172.30.248.35 (4 Aug 2008 02:56:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 4 Aug 2008 02:56:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 233092
Xref: news.mathworks.com comp.soft-sys.matlab:483415



"per isakson" <poi.nospam@bimDOTkthDOT.se> wrote in message
<g75k8l$ppg$1@fred.mathworks.com>...
> "ggk " <ggkmath@comcast.net> wrote in message 
> <g75evu$eg$1@fred.mathworks.com>...
> > Thanks, the file is only loaded once and used. 
> > Unfortunately I have many such files (all different data) 
> > I need to process. This data comes from an oscilloscope 
> > that output in ascii format (I'll check but don't believe 
> > it can export data in binary). 
> 
> Of some reason the on-line help says:
> 
> "Use load -ascii only on files that have been created with 
> the save -ascii command."
> 
> Did you try fscanf?
> 
> Over the years Urs Schwarz (us) has shown effective code to 
> handle ascii-files. However, what was true a few years ago 
> must not neccessarily be true with R2008a. 
> 
> / per     
> 

I would consider a pre-processor (e.g. fortran code) to read
the ascii file and convert it to binary for Matlab.  The
pre-processor could be an executable that could be called
from Matlab via a system call.