This repository includes the code for the legendflex.m Matlab function, along with all dependent functions required to run it. This function offers a more flexible ...