Pick one value from multiple results

1 view (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)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!