フィルターのクリア

Write a code about matrix summation

2 ビュー (過去 30 日間)
Torkan
Torkan 2018 年 2 月 26 日
回答済み: Torkan 2018 年 2 月 26 日
Hello
I want to write a code in order to make summation of the matrix in the way I explained below. Consider, we have a matrix 3 by 1. [1;4;1] actually there many of this matrix. I want to write a code to add the last array of this matrix to the first array of the second matrix and so on. It means that for the second matrix we have [1,4,2,4,1] For the third one we have [1,4,2,4,2,4,1] Thıs means that a number one which is the last number of matrix one adds to the number one which is the first array of matrix 2 and so on
Thanks
  2 件のコメント
Rik
Rik 2018 年 2 月 26 日
Is the goal to sum these many matrices, or to have a function that returns the n-th summed vector?
Jan
Jan 2018 年 2 月 26 日
The last "element", not "array".
What have you tried so far? Because this is a homework, posting a solution would not be useful, because you cannot submit it without cheating. So please post your current code and ask a specific question.

サインインしてコメントする。

回答 (1 件)

Torkan
Torkan 2018 年 2 月 26 日
Goal is to sum these matrices It seems that it is solved! İt is just a little part of a big project!

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by