How to extract random elements from an array?
Mostra commenti meno recenti
For eg., I have a 1d array, d=[1;3;4;6;8;7;8;9;6;7] and I need to extract the first, third and sixth variable. How do I do that?
1 Commento
Stephen23
il 23 Dic 2019
"I need to extract the first, third and sixth variable."
There is only one variable, the vector d.
The vector d has elements, and most likely you are trying to extract those elements.
Risposta accettata
Più risposte (1)
Badavath Swetha
il 28 Giu 2021
Modificato: Badavath Swetha
il 28 Giu 2021
0 voti
d ([1 3 6])
Categorie
Scopri di più su Elementary Math 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!