Write code to print ten columns of every number between 1 to 10
5 ビュー (過去 30 日間)
古いコメントを表示
Write code to print ten columns of every number between 1 to 10 like this ; ten 1 under each other in one column Ten 2 under each other in one column ... Ten 10 under each other in one column
0 件のコメント
回答 (1 件)
KALYAN ACHARJYA
2022 年 10 月 25 日
編集済み: KALYAN ACHARJYA
2022 年 10 月 25 日
Read at MATLAB Docs randi function
%Hint:
data=randi([1,10],[1,10]) %random array-10 columns between 1 to 10
result=repelem(data,[6],[1]) % 6 number of rows or any
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!