Filter löschen
Filter löschen

How do I create a matrix block of 128x128 for the matrix below whilst wiping away the E value ( E=0) only in blocks 28 and 48.

2 Ansichten (letzte 30 Tage)
E = 29000;
A = 25;
Ix = 39;
Iy = 21;
T = [ E*A 1 1 1; 1 E*Ix 1 1; 1 1 E*Iy 1];

Akzeptierte Antwort

Matt J
Matt J am 9 Nov. 2021
Bearbeitet: Matt J am 9 Nov. 2021
only in blocks 28 and 48.
Are 28 and 48 linear matrix indices, here? If so, then,
E = 29000;
A = 25;
Ix = 39;
Iy = 21;
T = [ E*A 1 1 1; 1 E*Ix 1 1; 1 1 E*Iy 1];
T0= [ 0 1 1 1; 1 0 1 1; 1 1 0 1];
M=repmat({T},128,128);
M([28,48])={T0};
M=cell2mat(M);

Weitere Antworten (0)

Kategorien

Mehr zu Colormaps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by