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 ?
조회 수: 2 (최근 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!