Round each value of matrix

9 Ansichten (letzte 30 Tage)
Kini
Kini am 7 Nov. 2016
Bearbeitet: Thorsten am 7 Nov. 2016
{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

Antworten (1)

Thorsten
Thorsten am 7 Nov. 2016
Bearbeitet: Thorsten am 7 Nov. 2016
totaircraft = round(totaircraft);

Kategorien

Mehr zu Linear Programming and Mixed-Integer Linear Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by