Can MATLAB be changed to single precision "mode"
2 次查看(过去 30 天)
显示 更早的评论
Hi! I'm reimplementing a compiled FORTRAN code package in MATLAB, and I just discovered that the "original" is doing everything in single precision. Producing results that are "as identical as they can be" to those produced by the basis package has a higher premium than the extra precision provided by MATLAB's default of doing everything in double, so I'm faced with having much of my code wrapped with single() functions, unless there's a way to put MATLAB into single precision "mode" I wasn't able to find searching the help for "single." Thanks!
0 个评论
采纳的回答
Walter Roberson
2011-11-22
There is no such mode.
The closest you get is something supported only on some versions under MS Windows. See this thread for hints -- and be sure to notice the strange results that can occur.
See also, though, <http://www.mathworks.com/support/solutions/en/data/1-79FEJH/index.html?product=ML&solution=1-79FEJH> which implies you cannot control the precision of some operations.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!