Take value from matrix and add value .

조회 수: 2 (최근 30일)
fyza affandi
fyza affandi 2018년 12월 7일
답변: madhan ravi 2018년 12월 7일
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