modify parted matrix element

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

Andrew Newell
Andrew Newell 2012년 2월 15일
Could you elaborate?

답변 (1개)

bym
bym 2012년 2월 16일

0 개 추천

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

이 질문은 마감되었습니다.

질문:

2012년 2월 15일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by