help-octave
[Top][All Lists]
Advanced

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

Re: regexprep resolve a comma value from a string


From: hxchrist123
Subject: Re: regexprep resolve a comma value from a string
Date: Sun, 11 Jun 2017 23:06:34 -0700 (PDT)

Hi Nich,
If i run my code, there is neither a comma or a point. 

Output{8}=real:temp:297,15 

if i would transform Output{8} in that way, that i get
Output{8}=real:temp:297.15

when i run 
Temp=str2num(regexprep(Output{8},'\D+', ''));  
the point or comma of Output{8} is gone and I always get:
29715. But I need this comand to filter out the string (real:temp:).


Regards,
Chris



--
View this message in context: 
http://octave.1599824.n4.nabble.com/regexprep-resolve-a-comma-value-from-a-string-tp4683609p4683650.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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