Pick one value from multiple results

2 views (last 30 days)
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.

Accepted Answer

VBBV
VBBV on 3 Apr 2021
Edited: VBBV on 3 Apr 2021
X1(1)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!