How to optimize the calculation of the mean between the elements of A and B efficiently?

2 次查看(过去 30 天)
hello, everything okay ?
if A=[a1 a2 a3 a4 a5 ..................an]
and B=[b1 b2 b3 b4 b5 ...............bn]
How to optimize the calculation of the mean between the elements of A and B efficiently?
for exemple
C=[(a1+b1)/2 (a2+b2)/2 (a3+b3)/2 ...................(an+bn)/2 ]

采纳的回答

David Hill
David Hill 2021-1-5
C=(A+B)/2;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Problem-Based Optimization Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by