Select elements from only three consecutive columns.
Mostra commenti meno recenti
Hello all,
I have a 12 by 12 matrix, and I want to select 10 random elements. The elements should be from only three consecutive columns.
For example, I want to use 10 random elements from columns (1, 2, 3) or they could be from columns (2, 3, 4) or columns(3, 4, 5) and so on.
Any help please.
Thank you
2 Commenti
Please do not ask the same question twice.
Oh, and it looks like you delete your question once answered. That's not going to go down very well with us.
AM-Laurentian
il 5 Apr 2019
Risposta accettata
Più risposte (1)
AM-Laurentian
il 5 Apr 2019
0 voti
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!