convertion from RGB to HSV space
uyen nguyen (2020). rgb_to_hsv(M) (https://www.mathworks.com/matlabcentral/fileexchange/48864-rgb_to_hsv-m), MATLAB Central File Exchange. Retrieved .
The use of nested for-loops, when vectorized code would be much neater and faster, give this submission its two stars. Then the question has to be asked: does this submission actually do anything that the inbuilt rgb2hsv does not do?
With a complete lack of any real documentation (only one line!), comments or examples, we are left to our own devices to guess what advantages or purposes this might have, that the inbuilt function does not achieve. My guess is "none".
Readers might be interested in this alternative submission, which converts between 15 different colorspaces, including RGB and HSV, with examples, demo files, comments and very useful help:
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!