Is there a matlab function similar to numpy.spacing
3 views (last 30 days)
Show older comments
Adam Stevens
on 17 Sep 2019
Commented: Adam Stevens
on 18 Sep 2019
Is there a matlab function similar to numpy.spacing ?
2 Comments
John D'Errico
on 17 Sep 2019
It would be far easier to answer, if you actually told people what that code does in python. Even give an example.
Accepted Answer
James Tursa
on 17 Sep 2019
From the numpy.spacing doc:
"It can be considered as a generalization of EPS ... there should not be any representable number between x + spacing(x) and x for any finite x."
Sounds like the MATLAB function eps( ) is what you want.
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!