Azzera filtri
Azzera filtri

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 visualizzazioni (ultimi 30 giorni)
E = 29000;
A = 25;
Ix = 39;
Iy = 21;
T = [ E*A 1 1 1; 1 E*Ix 1 1; 1 1 E*Iy 1];

Risposta accettata

Matt J
Matt J il 9 Nov 2021
Modificato: Matt J il 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);

Più risposte (0)

Categorie

Scopri di più su Colormaps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by