Lower/upper bound limits for my array values of integers

4 ビュー (過去 30 日間)
Mohamed Jamal
Mohamed Jamal 2020 年 7 月 15 日
回答済み: Parth Dethaliya 2020 年 7 月 15 日
Hi guys, I have an array with integer values like this a=[1.5 1.333 4.6 3.2 6.7 0.5 -0.1 0.7 100.7] ;
how can I do to all my values of my array lower bound or upper bound in matlab? thanks alot.
I mean by upper bound to value 1.5 => 2
lower bound to value 1.3 => 1
etc

回答 (1 件)

Parth Dethaliya
Parth Dethaliya 2020 年 7 月 15 日
You might use ceil and floor functions.

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by