b is being used as an index.
t is an array with elements incrementing my 0.999, which means b is also an array. Now elements of b is used as an index to construct s.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!