Round each value of matrix

9 visualizzazioni (ultimi 30 giorni)
Kini
Kini il 7 Nov 2016
Modificato: Thorsten il 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

Risposte (1)

Thorsten
Thorsten il 7 Nov 2016
Modificato: Thorsten il 7 Nov 2016
totaircraft = round(totaircraft);

Categorie

Scopri di più su Linear Programming and Mixed-Integer Linear Programming in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by