Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: extracting data from long message
Date: Thu, 2 Aug 2007 21:26:23 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 17
Message-ID: <f8ti5v$2gi$1@fred.mathworks.com>
References: <f8tb9v$mmp$1@fred.mathworks.com> <f8tf3o$huk$1@canopus.cc.umanitoba.ca> <f8tgb5$can$1@fred.mathworks.com> <f8tguo$cs$1@fred.mathworks.com> <f8thkf$ifv$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186089983 2578 172.30.248.37 (2 Aug 2007 21:26:23 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Aug 2007 21:26:23 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:422255


Bill Jordan:
<SNIP potential incompatibility...

> Stil getting the same error:"??? Error using ==> textscan
> > > First input must be of type double"...

try

     msg='12.34 05/06/06 : cg: ng';
     sm=strread(msg,'%s','delimiter',':');
     sm
% sm = 
%    '12.34 05/06/06 '
%    'cg'
%    'ng'

us