フィルターのクリア

Round each value of matrix

18 ビュー (過去 30 日間)
Kini
Kini 2016 年 11 月 7 日
編集済み: Thorsten 2016 年 11 月 7 日
{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

回答 (1 件)

Thorsten
Thorsten 2016 年 11 月 7 日
編集済み: Thorsten 2016 年 11 月 7 日
totaircraft = round(totaircraft);

カテゴリ

Help Center および File ExchangeLinear Programming and Mixed-Integer Linear Programming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by