problem in my program
12 次查看(过去 30 天)
显示 更早的评论
Hi everyone
In the attached program, the value of variable total is up to 255 at all time, in spite of the value must
depend on equation total=n*8 ( where in this case the value of n=95 and total=95*8, but total is 255 and this wrong the value must be 760)
Please, inform me the reason
regards
0 个评论
采纳的回答
Azzi Abdelmalek
2016-7-6
Check the class of n
class(n)
You will find the uint8 class, now try
n=double(95)
n*8
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!