How can I tell MATLAB to discard two roots and only proceed with one value?
Mostrar comentarios más antiguos
I used the matlab function "roots" to find the roots of a cubic. This is within a for loop, so the values are always changing based on my inputs, but the three roots are generally along the lines of:
T2 =
1.0e+04 *
2.658308259664422
-0.442009626219650
0.057471418250745
How can I tell matlab to take the 0.057471418250745 value and discard the other two values going forward? I'm trying to simulate the brayton cycle if that helps.
Thanks! Tom
Respuesta aceptada
Más respuestas (1)
Thomason
el 10 de Feb. de 2013
0 votos
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!