Mathematical models of pattern formation are indispensable tools in various fields, from developmental biology to ecology, providing insights into complex phenomena and contributing to our understanding of the natural world. These patterns have been extensively studied using reaction-diffusion and NewellWhiteheadSegel models. This article intended to find an approximate numerical solution to the NewellWhiteheadSegel equation. The appearance of stripe patterns in two-dimensional systems is explained in nonlinear systems using the NewellWhiteheadSegel equation. Based on the function basis of rank polynomials of star graphs and the well-posed operational matrices, the rank polynomial collocation method is constructed. The alleged rank polynomial collocation method created a system of nonlinear algebraic equations from the nonlinear NewellWhiteheadSegel equation. The nonlinear NewellWhiteheadSegel equation solution is approximated by solving the resulting system via Newton's Raphson method. Numerical instances are provided to illustrate the validity and effectiveness of the technique. Verification of accuracy is accomplished by calculating error norms. The obtained numerical results show a reasonable degree of consistency with the findings reported in the current literature. The scheme's primary benefit is the algorithm's ease of implementation.