hy guys. please help me, I dont know to shift column and row in matlab. please see image below. thanks. :)

 Akzeptierte Antwort

Matt J
Matt J am 19 Jan. 2021
Bearbeitet: Matt J am 19 Jan. 2021

1 Stimme

x=repmat([1 2 3 4],4,1); x(6,6)=0
x = 6×6
1 2 3 4 0 0 1 2 3 4 0 0 1 2 3 4 0 0 1 2 3 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0
perm=[1,2,5,6,3,4];
x(perm,perm),
ans = 6×6
1 2 0 0 3 4 1 2 0 0 3 4 0 0 0 0 0 0 0 0 0 0 0 0 1 2 0 0 3 4 1 2 0 0 3 4

3 Kommentare

Wahyu A
Wahyu A am 19 Jan. 2021
Cool. Its works. Thanks a lot😀
Matt J
Matt J am 19 Jan. 2021
You're welcome, but please Accept-click the answer to indicate that it worked.
Wahyu A
Wahyu A am 19 Jan. 2021
Noted sir, thanks for the answer

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Produkte

Gefragt:

am 19 Jan. 2021

Kommentiert:

am 19 Jan. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by