MATLAB Answers


problem in my program

Asked by Majid Al-Sirafi on 6 Jul 2016
Latest activity Commented on by Majid Al-Sirafi on 6 Jul 2016
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


Sign in to comment.

1 Answer

Azzi Abdelmalek
Answer by Azzi Abdelmalek
on 6 Jul 2016
 Accepted Answer

Check the class of n
You will find the uint8 class, now try

  1 Comment

thats OK thank you very much my brother

Sign in to comment.