-
2 Comments
Md Sumon
on 19 Jul 2016
How can I make it shorter?
James Tanner
on 26 Jun 2017
You could remove the 1's:
i= 1:length(x)
and
x(i)<0 | x(i)>10
Also, it's probably best to use numel instead of length.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!