-
12 Comments
Show
9 older comments
Anirban Pal
on 20 Apr 2020
very clever!
Devlin
on 23 Apr 2023
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
minghui
on 21 Jun 2023
great,but I cannot think of it
Hung
on 2 Jul 2023
hahahahaha that's unbelievable
Muh Rama
on 13 Jul 2023
what ?
Eric
on 18 Jul 2023
truly a great solution: concise and small!
Ahmad Alzahrani
on 18 Jul 2023
very sharp thinking
Andre
on 21 Aug 2023
I truly appreciate you!!
Francesco
on 2 Nov 2023
Wow, the second line is a monument on logical indexing!!!!
Ha
on 26 Feb 2024
Its so smart you are
Andrew
on 16 Apr 2024
Well done!
I started with a much longer function and eventually whittled down to something like this. I think breaking it out into a few extra lines and adding some comments would be even better in practice, to make the code easier to read and modify.
Andrei
on 7 Dec 2024
this is very clever
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!