A matrixing method for automatically determining a logic of a last circuit breaker. The method comprising the following steps: step 1. establishing an alternating current field topology matrix; step 2. constructing a connectivity matrix; step 3. constructing a node attribute matrix; step 4. calculating an alternating current field state matrix; and step 5. a determination basis: step 51. when the conditions that an element equal to X exists in any row of the alternating current field state matrix and the row contains an element equal to Y and an element equal to Z are satisfied; step 52. acquiring a new alternating current field state matrix corresponding to the disconnected circuit breaker compartment; and step 53. when the conditions that an element equal to X exists in any row of the new alternating current field state matrix and the row contains an element equal to Y and an element equal to Z are not satisfied, determining that a disconnected circuit breaker compartment is the last circuit breaker. The me