Take value from matrix and add value .

Matrix S is given
S= [ 0 0 0 0 0
1 0 0 0 0]
I want to take 1st three number of second row which is 100 and then add with 1 which thee answer will 101 (binary)
The result should be like this
S= [ 0 0 0 0 0
1 0 0 0 0
1 0 1 0 0]
Can someone help me?

 採用された回答

madhan ravi
madhan ravi 2018 年 12 月 7 日

1 投票

S(3,:)=S(2,:);
S(3,3)=1

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2018 年 12 月 7 日

回答済み:

2018 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by