How do I use single precision numbers in a summation? My result is not coming out as expected.
1 次查看(过去 30 天)
显示 更早的评论

So this is the question I havve. However, when I change all the numeric values to single precision, it does not make a difference in the output. Any idea what I am doing wrong?

any suggestions would be appreciated!
0 个评论
采纳的回答
Walter Roberson
2023-9-25
4 个评论
Walter Roberson
2023-9-25
Another hint:
P*ones(1,Q)
is one way to construct a vector of size 1 x Q that contains all P
更多回答(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!