The relationship matrix diagram of the connection relationship between residential rooms shows the connection situation between different rooms. Through the annotations in the figure, it can be visually seen that there is a semi connected relationship between the entrance and bathroom, indicating that they are somewhat connected but not completely connected. The master bedroom and master bathroom are completely connected, indicating that they can directly enter each other. This design takes into account the privacy and convenience of residents, creating a suitable residential environment.