Pick one value from multiple results

A solve command finds four solutions like,
X1 =
0.5017
-0.5017
0.5017
-0.5017
how can I pick only the first value "0.5017"?
Thank you.

 採用された回答

VBBV
VBBV 2021 年 4 月 3 日
編集済み: VBBV 2021 年 4 月 3 日

1 投票

X1(1)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

質問済み:

2021 年 4 月 3 日

コメント済み:

2021 年 4 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by