Take value from matrix and add value .

1 次查看(过去 30 天)
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
S(3,:)=S(2,:);
S(3,3)=1

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by