Create array Arr with 5 rows and 4 columns with each element = 5
17 ビュー (過去 30 日間)
古いコメントを表示
vArr = [ 5 6 7 8; 2 3 4 5 ; 2 3 4 5; 2 3 4 5; 2 3 4 5 ]
but what does it mean with each element = 5 all number has to be 5???
0 件のコメント
回答 (2 件)
James Tursa
2019 年 9 月 26 日
編集済み: James Tursa
2019 年 9 月 26 日
Yes. Replace all of your numbers with 5 and you will have it. E.g.,
Arr = [5 5 5 5; etc.
This is the hardest way to accomplish the result, but it does work.
0 件のコメント
raghav
2024 年 2 月 24 日
CODE TO CREATE ARRAY OF ALL ELEMENTS OF 5 WITH 5 ROWS AND 4 COLUMNS
Arr=5*ones(5,4)
3 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!