how to calculate the average of two values data that side by side and place it between those two values

조회 수: 5(최근 30일)
Madania Nia
Madania Nia 2020년 2월 26일
댓글: Madania Nia 2020년 2월 26일
i want to calculate the average of two values data that side by side and place it between those two values
for example i have matrix
A=[3;5;7;1;3]
the average of those data that side by side is [4;6;4;2]
then i want it to become
B=[3
4
5
6
7
4
1
2
3]

채택된 답변

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by