필터 지우기
필터 지우기

Round each value of matrix

조회 수: 7 (최근 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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by