フィルターのクリア

How to sorten the result value depicted on text area

1 回表示 (過去 30 日間)
Amron
Amron 2023 年 9 月 12 日
コメント済み: NAVNEET NAYAN 2023 年 9 月 13 日
hello, please help me.
the result of my calculation which is presented on "text area" is too long. i wanna shorten it at least to have one digit decimal. how can i do that? thanks

採用された回答

NAVNEET NAYAN
NAVNEET NAYAN 2023 年 9 月 12 日
編集済み: NAVNEET NAYAN 2023 年 9 月 12 日
you can use "round" function.
I think that might also help.
Like
Min_diameter=0.56616
Min_diameter=round(Min_diameter,N);
N in your case will be 1, as you are looking for one digit decimal place.
  2 件のコメント
Amron
Amron 2023 年 9 月 12 日
thanks for your answer. it is simple and helpful
NAVNEET NAYAN
NAVNEET NAYAN 2023 年 9 月 13 日
You're welcome!!

サインインしてコメントする。

その他の回答 (1 件)

KSSV
KSSV 2023 年 9 月 12 日
REad about fprintf, sprintf
  1 件のコメント
Amron
Amron 2023 年 9 月 12 日
thanks for your answer brother. it is a new knoledge for learning those commands

サインインしてコメントする。

カテゴリ

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

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by