help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sscanf


From: Markus Bergholz
Subject: Re: sscanf
Date: Wed, 29 Jan 2014 21:33:46 +0100

octave:6> a= cell2mat(regexp(string, '_(.*?)_Pin_-(.*?)_(.*?).txt','tokens'))
a =
{
  [1,1] = 21.00
  [1,2] = 29.00
  [1,3] = Noise
}
octave:7> str2double(a{1,1})
ans =                   21


Output is a cell, and every cell is a string (char).
If you need to calculate with it, use str2double

reply via email to

[Prev in Thread] Current Thread [Next in Thread]