I had a hard time figuring out how to adjust the marker (icon) size in a Figure in the newest versions of MATLAB. This functions does that. Just call the function after the legend command and give it the size you want the markers.
Troy Bouman (2021). setLegMarkSize(legendSizeDesired) (https://www.mathworks.com/matlabcentral/fileexchange/53006-setlegmarksize-legendsizedesired), MATLAB Central File Exchange. Retrieved .
Inspired by: Adjust legend marker size
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!