how can i round up all my numbers in this matrix (to make it look like the bottom line)
1 回表示 (過去 30 日間)
古いコメントを表示
19.921920682316983 15.607883029893719 12.369945347943816 9.904715485705831 8.006173113714063 5.365552456501197 3.704171008046680
20 16 13 10 9 6 4
0 件のコメント
採用された回答
madhan ravi
2019 年 1 月 15 日
編集済み: madhan ravi
2019 年 1 月 15 日
https://www.mathworks.com/help/matlab/ref/ceil.html - ceil() does the job.
a=[ 19.921920682316983 15.607883029893719 12.369945347943816 9.904715485705831 8.006173113714063 5.365552456501197 3.704171008046680 ];
b=ceil(a)
Gives:
b =
20 16 13 10 9 6 4
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!