How to use coder.unroll in a while loop
显示 更早的评论
Hi
I'm looking for a sample code of how to use "coder. unroll" in a while loop. I intend to perform a division operation and want to unroll the loop if I achieve the required accuracy level.
For example,
format long g
a = (4);
b = (6);
T = numerictype('Signed', true,...
'WordLength', 64,...
'FractionLength', 60);
quotient = divide(T,a,b)
and I want to stop the division process when a certain fractional bit accuracy, say 0.6667, is reached.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Test Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!