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 次查看(过去 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!