Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)
E = 29000;
A = 25;
Ix = 39;
Iy = 21;
T = [ E*A 1 1 1; 1 E*Ix 1 1; 1 1 E*Iy 1];

Respuesta aceptada

Matt J
Matt J el 9 de Nov. de 2021
Editada: Matt J el 9 de Nov. de 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);

Más respuestas (0)

Categorías

Más información sobre Colormaps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by