sub2ind -> out of range subscript
Show older comments
my code is give out of range subscript error how can i solve it? D=6000x1 double
d = zeros(2, 1);
d(sub2ind(size(d), D(k), 1)) = 1;
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!