This document describes a Matlab-based approach for teaching students how to solve two-stub transmission line problems using the Smith chart. It presents the problem of finding the shortest stub lengths to achieve no reflection from a load. It then outlines the traditional Smith chart solution process and describes how Matlab scripts can implement each step as a modular function. This allows students to better understand the Smith chart as a step-by-step process. The document provides an example problem and describes the specific Matlab scripts used to implement each solution step. Survey responses from students indicated this approach helped make the challenging subject matter easier to comprehend.