Round each value of matrix

25 visualizaciones (últimos 30 días)
Kini
Kini el 7 de Nov. de 2016
Editada: Thorsten el 7 de Nov. de 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

Respuestas (1)

Thorsten
Thorsten el 7 de Nov. de 2016
Editada: Thorsten el 7 de Nov. de 2016
totaircraft = round(totaircraft);

Categorías

Más información sobre Linear Programming and Mixed-Integer Linear Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by