what is the function of (sub2ind)
Show older comments
a = eval(['sub2ind(20.*ones(1,20)'',20,1' ');'])
1 Comment
John D'Errico
on 3 Feb 2018
Edited: John D'Errico
on 3 Feb 2018
More to the point, is why anyone in their right mind would ever want to write that code? A mess, with absolutely no good purpose.
Far better would be the simple:
a = 20;
Accepted Answer
More Answers (0)
Categories
Find more on LaTeX in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!