Stan
Posts:
52
Registered:
6/18/12
|
|
Re: Extract numbers from table containing text and numbers
Posted:
Feb 1, 2013 9:19 PM
|
|
dpb <none@non.net> wrote in message <keh2cd$6al$1@speranza.aioe.org>... > On 1/31/2013 8:40 PM, Stan wrote: > I cut'n pasted a sample line into a cell string and at the command line > get... > > >> textscan(d{1},'Q (upper-edge -%f AmP )= %f+- %f %*s') > ans = > [-1.2500e-04] [0.0099] [2.8300e-04] > >> > > Salt to suit... > > --
I did this: >> d = {' Q (upper-edge ........'}; >> textscan(d{1},'Q (upper-edge -%f AmP )= %f+- %f %*s')
ans = [-1.2500e-04] [0 X 1 double] [0 X 1 double]
------------------------------------X------------------------------------
How did you define the cell string? Did you use something different?
|
|