Hi Pascal,
I understand that you are encountering some issues while using the "drawrectangle" function. To address this, I recommend referring to the documentation and examples provided in this link: https://in.mathworks.com/help/images/ref/drawrectangle.html. This resource will provide you with a better understanding of how to use the function according to your specific needs.
I hope this helps!