Select elements from only three consecutive columns.
Afficher commentaires plus anciens
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 commentaires
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
le 5 Avr 2019
Réponse acceptée
Plus de réponses (1)
AM-Laurentian
le 5 Avr 2019
0 votes
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!