How to do this flowchart?

I am having some trouble with the while loop here. It seems like the sorting of my code is not working. I am locating the sorting algorithm outside the while loop.

5 comentarios

Walter Roberson
Walter Roberson el 20 de Ag. de 2020
What sorting are you referring to?
Ygor Marca
Ygor Marca el 20 de Ag. de 2020
I am reading the capacitor's voltage and doing a sorting to connect the capacitors with lower or higher voltage.
For example:
[B, Ia] = sort(Uc,'ascend'); %Lower voltage submodules
Which: Uc is the capacitor's voltage
Walter Roberson
Walter Roberson el 20 de Ag. de 2020
It looks to me as if you should be using min() and max() instead of sort() ?
Ygor Marca
Ygor Marca el 20 de Ag. de 2020
Because I need all the capacitor voltages
Walter Roberson
Walter Roberson el 20 de Ag. de 2020
No, the flowchart requires connecting or bypassing the highest or lowest among the voltages. That does not require sorting, just min() or max()

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Gravitation, Cosmology & Astrophysics en Centro de ayuda y File Exchange.

Preguntada:

el 20 de Ag. de 2020

Comentada:

el 20 de Ag. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by