I created an array of size 255 of pseudo-random integers . I want to access the value at a particular index of the array how can I do it ?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Vaibav Reddy
il 27 Lug 2022
Modificato: John D'Errico
il 27 Lug 2022
r0 = uint8(randi(255,255,1));
I now want to access the value at the index 158. How do I do it ?
0 Commenti
Risposta accettata
John D'Errico
il 27 Lug 2022
Modificato: John D'Errico
il 27 Lug 2022
Basically, you need to look at the getting started tutorials. Try the MATLAB Onramp.
r0 = uint8(randi(255,255,1));
r0(158)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays 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!