Select elements from only three consecutive columns.
Ältere Kommentare anzeigen
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 Kommentare
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
am 5 Apr. 2019
Akzeptierte Antwort
Weitere Antworten (1)
AM-Laurentian
am 5 Apr. 2019
0 Stimmen
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!