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

1 visualizzazione (ultimi 30 giorni)
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?

Risposte (1)

David Hill
David Hill il 21 Set 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.

Categorie

Scopri di più su Argument Definitions in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by