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.

 Accepted Answer

More Answers (0)

Categories

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

Asked:

on 3 Apr 2021

Commented:

on 3 Apr 2021

Community Treasure Hunt

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

Start Hunting!