For the Matlab coder, we cannot setting the color by name such as red, yellow...
For fix the above error of insertShape(),I changed to:
insertShape(IMG, 'Rectangle',[AREA_L AREA_U AREA_W AREA_H], 'LineWidth', 5, 'Color', [255,0,0]);
The error is cleared and pass the generation process.