Using end as argument to function
Show older comments
So today i noticed something i think is weird.
Say i define an anonyomous function.
f = @(x) ... Now if i input f(end) it will evaluate the function at f(1).
Is this a bug or is there a reason for this behaviour?
Regards Michael
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB 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!