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.

 Risposta accettata

VBBV
VBBV il 3 Apr 2021
Modificato: VBBV il 3 Apr 2021
X1(1)

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by