Round each value of matrix

20 vues (au cours des 30 derniers jours)
Kini
Kini le 7 Nov 2016
Modifié(e) : Thorsten le 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

Réponses (1)

Thorsten
Thorsten le 7 Nov 2016
Modifié(e) : Thorsten le 7 Nov 2016
totaircraft = round(totaircraft);

Catégories

En savoir plus sur Linear Programming and Mixed-Integer Linear Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by