フィルターのクリア

how to do matrix addition of different sizes

1 回表示 (過去 30 日間)
krishnamurthy
krishnamurthy 2013 年 6 月 13 日
E = diag([12:4:56])
B=rand(12,3)
C=A+B

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 13 日
C=A
C(:,1:3)=A(:,1:3)+B(:,1:3)
  3 件のコメント
krishnamurthy
krishnamurthy 2013 年 6 月 13 日
sorry actually
h=rand(1,12)
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 13 日
E1=diag(a+(h.*d))
E2=lambda+B;
E=E1
E(:,1:3)=E1(:,1:3)./E2(:,1:3)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOperating on Diagonal Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by