Info

此问题已关闭。 请重新打开它进行编辑或回答。

modify parted matrix element

1 次查看(过去 30 天)
Bayan
Bayan 2012-2-15
关闭: MATLAB Answer Bot 2021-8-20
Hi i have part of specific matrix was made partition , then how we can modify all of element of this part by add or multiply or any mathematical operation??

回答(1 个)

bym
bym 2012-2-16
x =magic(4)
x =
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
x(1:2,1:2)=x(1:2,1:2)-x(1:2,1:2)
x =
0 0 3 13
0 0 10 8
9 7 6 12
4 14 15 1

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by