https://fr.mathworks.com/help/vision/ref/generatearucomarker.html
generateArucoMarker - Generate ArUco marker images - MATLAB
This MATLAB function generates ArUco marker images imgs of the specified family markerFamily and size markerSize with the corresponding identifiers ids.
generatearucomarkerimagesmatlab