フィルターのクリア

Create a nxn matrix with the same values

37 ビュー (過去 30 日間)
AnnaMaria Accardo
AnnaMaria Accardo 2015 年 2 月 25 日
Hi all, Is there other methods to create an nxn matrix with the same values? I found a method which is
B(1:9, 1:9) = 3
that is perfect but, there is a different method?

採用された回答

Rick Rosson
Rick Rosson 2015 年 2 月 25 日
B = 3*ones(9);
  2 件のコメント
AnnaMaria Accardo
AnnaMaria Accardo 2015 年 2 月 25 日
ah! So easy? Sorry. I'm too stupid...
Gangadhar Venkata Ramana
Gangadhar Venkata Ramana 2021 年 8 月 7 日
I have been trying to multiply a scalar value to 2D matix inside the batch parallel processing.
I am unable to scale the matrix with the scalar value. An error showing, matix dimensions must agree.
Kindly suggest a solution.
Thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by