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.

 Respuesta aceptada

VBBV
VBBV el 3 de Abr. de 2021
Editada: VBBV el 3 de Abr. de 2021

1 voto

X1(1)

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Abr. de 2021

Comentada:

el 3 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by