This study presents a novel approach to advance warp knitting design and simulation using MATLAB, offering a significant contribution to the textile fabric manufacturing industry. By analyzing the structural characteristics of warp knitted fabrics, we decompose the basic structural unit into curves, establish a coordinate system, and derive mathematical models. MATLAB is employed to visually represent these mathematical models, incorporating various stitch patterns. The mathematical output of MATLAB was used to display the mathematical model as an image, according to the arrangement of the loops of stitch and the loop statement pillar stitch, tricot stitch, cord lap, satin lap, atlas stitch, two bar tricot stitch, lock knit stitch, reverse lock knit stitch, satin stitch, and sharkskin stitch. Physical measurements are then used for numerical analysis, refining the theoretical model to closely match physical fabrics. Hence, the work represents a promising avenue for achieving cleaner production in warp-knitted fabric manufacturing.