I have two vectors:
- p of size 32x1,
- b of size 300000x1. Value range of elements of b is [1, 32].
I want to assign
And I got error: Array indices must be positive integers or logical values.
It was fine when I tried
However, MATLAB releases the error again with
Do you have any ideas on what problem that I encounted? Any help you have to offer would be greatly appreciated.