read "inf" and "eps" values request
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
Hi,
I really need to read "inf" and "eps" values at real number fields. Is there
any workaround?
Michal
Original issue reported on code.google.com by michal.k...@gmail.com
on 3 Oct 2013 at 9:07
Google Code Exporter commented
Hi,
you can define inf as follows:
age: .Inf
see the reference card
http://www.yaml.org/refcard.html
But regarding eps, it's a bit complicated.. It depends on the platform you
use.. but,...
you can use the feature of yamlmatlab that enables substitution of some string
parameters by values. For example:
you have a yaml file test.yaml
age: eps
then in Matlab you write commands:
>>dictionary.eps = eps % by this you define which parameters are substituted
by which value
>> ReadYaml('test.yaml', 1, 1, 0, dictionary) % here you add additional
argument dictionary and you will obtain
ans =
age: 2.2204e-16
Original comment by JirkaCig...@gmail.com
on 3 Oct 2013 at 9:34
Google Code Exporter commented
Original comment by JirkaCig...@gmail.com
on 26 Oct 2013 at 7:22
- Changed state: Fixed