How to separate the integer value of a real number
5 ビュー (過去 30 日間)
古いコメントを表示
For example a variable A is calculated as {2.951,5.420,8.062,4.963, .....} I want A to have just the integer values of these real numbers, i.e. A={2,5,8,4,....}
0 件のコメント
採用された回答
Sachin Ganjare
2012 年 9 月 26 日
編集済み: Sachin Ganjare
2012 年 9 月 26 日
Just use Floor function.
A_INT = floor(A);
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!