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

采纳的回答

madhan ravi
madhan ravi 2019-1-15
编辑:madhan ravi 2019-1-15
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 个)

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by