Round each value of matrix

{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

Answers (1)

Thorsten
Thorsten on 7 Nov 2016
Edited: Thorsten on 7 Nov 2016
totaircraft = round(totaircraft);

Categories

Asked:

on 7 Nov 2016

Edited:

on 7 Nov 2016

Community Treasure Hunt

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

Start Hunting!