Round each value of matrix

7 次查看(过去 30 天)
Kini
Kini 2016-11-7
编辑: Thorsten 2016-11-7
{totaircraft=linprog(fnew,AAir,bAir,(),(),lowerb);}
After the above linprog function, I want each element of the matrix totaircraft to be rounded to the nearest integer. How do I do this? Thanks

回答(1 个)

Thorsten
Thorsten 2016-11-7
编辑:Thorsten 2016-11-7
totaircraft = round(totaircraft);

类别

Help CenterFile Exchange 中查找有关 Multidimensional Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by