Is there a matlab function similar to numpy.spacing
2 次查看(过去 30 天)
显示 更早的评论
Is there a matlab function similar to numpy.spacing ?
2 个评论
John D'Errico
2019-9-17
It would be far easier to answer, if you actually told people what that code does in python. Even give an example.
采纳的回答
James Tursa
2019-9-17
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!