Write code to print ten columns of every number between 1 to 10
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
KALYAN ACHARJYA
il 25 Ott 2022
Modificato: KALYAN ACHARJYA
il 25 Ott 2022
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 Commenti
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!