필터 지우기
필터 지우기

how can i replce numbers at the end of rows and coloumns in same metrix?

조회 수: 1 (최근 30일)
rising falcon
rising falcon 2015년 10월 7일
편집: rising falcon 2015년 10월 9일
A=zeros(4) and i want to replce numbers at the end of 3rd,4th row and 3rd,4th coloumns. how can i do this?

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2015년 10월 7일
Hi,
replacing is a question of indexing. Try
A(3:4, 3:4)
and you should see a 2x2 Matrix. Replace this by any other 2x2 matrix using =
A(3:4,3:4) = rand(2,2);
Titus

카테고리

Help CenterFile Exchange에서 Electromechanical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by