Filter löschen
Filter löschen

Take value from matrix and add value .

2 Ansichten (letzte 30 Tage)
fyza affandi
fyza affandi am 7 Dez. 2018
Beantwortet: madhan ravi am 7 Dez. 2018
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?

Akzeptierte Antwort

madhan ravi
madhan ravi am 7 Dez. 2018
S(3,:)=S(2,:);
S(3,3)=1

Weitere Antworten (0)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by