Transmission line matrix method