Watch this Author's files
Thank you for your contribution ! You saved me a lot of search time. I only have one suggestion to improve your function : you could add a new input argument to control the "EdgeColor" of the CI to avoid using the default edge color.
Simple & useful. Thank you for your contribution.
Contact us at files@mathworks.com