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 ?
4 ビュー (過去 30 日間)
古いコメントを表示
r0 = uint8(randi(255,255,1));
I now want to access the value at the index 158. How do I do it ?
0 件のコメント
採用された回答
John D'Errico
2022 年 7 月 27 日
編集済み: John D'Errico
2022 年 7 月 27 日
Basically, you need to look at the getting started tutorials. Try the MATLAB Onramp.
r0 = uint8(randi(255,255,1));
r0(158)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!