Is "ix = 1:[4:12]" legal?
Show older comments
Is this behavior documented (for R2013a)
>> ix = 1:[4:12]
ix =
1 2 3 4
The Code Analalyzer issues a warning but Matlab evaluates the code without warning or error. I think a warning is appropriate.
 

Accepted Answer
More Answers (0)
Categories
Find more on Whos 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!