フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Process each element in my buffer ?

1 回表示 (過去 30 日間)
I Made
I Made 2013 年 3 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
As example i have this data on my buffer
1 2 3 4 5 6 7 8 9 10
2 3 4 5 6 7 8 9 10 1
3 4 5 6 7 8 9 10 1 2
i want to calculate each column using formula, sum all and divide by 2 so i get :
2 4,5 6 7,5 9 10,5 12 13,5 10 6,5
How can i do that, the main idea i asking here is how to apply a certain formula to each column in a buffer?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 11 日
編集済み: Azzi Abdelmalek 2013 年 3 月 11 日
A=[1 2 3 4 5 6 7 8 9 10
2 3 4 5 6 7 8 9 10 1
3 4 5 6 7 8 9 10 1 2]
out=sum(A)/2

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by