フィルターのクリア

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 Center および File ExchangeColormaps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by