conversion of double to int
古いコメントを表示
i had an array of 1*10 double named Q(i). I want to find modulo function of these 10 values with 256. But am getting wrong answers. May be its the problem of types. Will you please help me to solve?
5 件のコメント
Walter Roberson
2017 年 7 月 21 日
Could you give some examples of the values and what you are observing ?
SNEHA P S
2017 年 7 月 21 日
編集済み: Walter Roberson
2017 年 7 月 21 日
Adam
2017 年 7 月 21 日
And what is the problem? That seems like the right answer to me.
SNEHA P S
2017 年 7 月 21 日
Walter Roberson
2017 年 7 月 21 日
Give the command
format long g
And then display the Q value again
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!