problem in my program

조회 수: 1(최근 30일)
Majid Al-Sirafi
Majid Al-Sirafi 2016년 7월 6일
댓글: Majid Al-Sirafi 2016년 7월 6일
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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 6일
Check the class of n
You will find the uint8 class, now try
  댓글 수: 1
Majid Al-Sirafi
Majid Al-Sirafi 2016년 7월 6일
thats OK thank you very much my brother

댓글을 달려면 로그인하십시오.

추가 답변(0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by