How do I create a Matlab 10x10 matrix of numbers 1-100?

2 ビュー (過去 30 日間)
Matlab12
Matlab12 2014 年 2 月 23 日
コメント済み: Sabrina 2017 年 6 月 23 日
How do I create a Matlab 10x10 matrix that contains the numbers 1-100 in column major form? I am not allowed to use the colon operator more than four times.

採用された回答

Raza Ali
Raza Ali 2014 年 2 月 23 日
A=reshape(1:100,10,10)
or
A=reshape(1:100,10,10)'
  2 件のコメント
Matlab12
Matlab12 2014 年 2 月 23 日
Much thanks Raza!
Sabrina
Sabrina 2017 年 6 月 23 日
Thanks! It helped me too.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by