フィルターのクリア

10x10 Matrix

41 ビュー (過去 30 日間)
Gulnabi sadat
Gulnabi sadat 2021 年 4 月 18 日
コメント済み: Gulnabi sadat 2021 年 4 月 18 日
Create a 10x10 matrix with random numbers between 0 and 10. Now, make all elements in the first row
and first column equal to 1.

回答 (1 件)

David Fletcher
David Fletcher 2021 年 4 月 18 日
a=ones(10);
a(2:end,2:end)=randi([0 10],9)
  1 件のコメント
Gulnabi sadat
Gulnabi sadat 2021 年 4 月 18 日
Thank so much! It worked

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

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by