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

3 Ansichten (letzte 30 Tage)
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?

Antworten (1)

Titus Edelhofer
Titus Edelhofer am 7 Okt. 2015
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

Kategorien

Mehr zu Spline Postprocessing finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by