필터 지우기
필터 지우기

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

채택된 답변

Matt J
Matt J 2021년 11월 9일
편집: Matt J 2021년 11월 9일
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);

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by