Good day. I am trying to draw multiple rooms within app desinger on a ui axes with the following code: 
 function mainfloor(app)
            rectangle(app.UIAxes, 'Position', [5,5,app.L,app.W]);  
        end.
This allows the user to enter the app.L value and the app.W  to get the diemensions of the box. The problem i am getting is that the boxes are overlapping each other as seen in the image below:
Essientially I would like the boxes to be side by side as show in the image below: 
Addtionally, I would like app desinger to recongise each room as a separate entitiy when the user enters each room dimension. I am fairly new to MATLab Appdesigner and any help would be apprecidated.