フィルターのクリア

how to sum elements of a cell array

7 ビュー (過去 30 日間)
mohamed Faraj
mohamed Faraj 2019 年 8 月 14 日
回答済み: madhan ravi 2019 年 8 月 14 日
I have a cell array V={[1;2;3;4],[5;6;7;8]}, I want to do a summation as follows [1+5;2+6;3+7;4+8]. I need the result to be in a matrix. Thank you

採用された回答

madhan ravi
madhan ravi 2019 年 8 月 14 日
sum(cat(3,V{:}),3)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by