Elementwise indexing of a vector by a multidimentional array
조회 수: 1 (최근 30일)
이전 댓글 표시
I have:
- A, an n-dimentional array of integers, whose values are in the range 1-100,
- and T, a 1-dimentional, length 100 array of values.
I want a new n-dimentional array B which, for each corresponding (same position) integer c of A, has the value T(c).
What is the proper way to do this without a for loop, preferrably that works on a gpuArray?
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!