How do I calculate the square of TStep5 divided by the average of TStep4 and TStep2?
1 view (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
David Hill
on 21 Sep 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.
0 Comments
See Also
Categories
Find more on Argument Definitions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!