How do I calculate the square of TStep5 divided by the average of TStep4 and TStep2?

1 visualización (últimos 30 días)
If TStep = Step', and TStep2=TStep(2), TStep4=TStep(4), TStep5=TStep(5), how do I calculate the square of TStep5 divided by the average of TStep4 and TStep2?

Respuestas (1)

David Hill
David Hill el 21 de Sept. de 2019
TStep5^2/mean([TStep4,TStep2]);
If you explained what you really what to do, it would be easier to help. There is likely a must easier approach than you are doing and assigning variable to each member of your array should not be done.

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by