The NAG Toolbox for MATLAB®

Optimized mathematical and statistical routines for users of MATLAB
Unrivalled Reliability
Algorithms that work for your applications. Flexible to the core.

If you need to add mathematical and statistical functionality to your applications or if you have complex mathematical problems to solve, the NAG Toolbox for MATLAB will provide a host of benefits. The NAG Toolbox for MATLAB provides a solid numerical foundation and serves diverse mathematical areas. It is expertly documented, maintained and supported, and is regularly updated with cutting edge algorithmic capabilities.

Accelerating development of your algorithm-reliant application

"I am impressed by the optimization algorithm provided by the NAG Toolbox for MATLAB. It improves the results for my maximum likelihood estimations for situations where the sample size is small causing non-concentrating likelihood and when the likelihood functions have 'ridges'. Ordinary algorithms, for example Newton gradient search, perform poorly in these situations." Ning Guo, Warwick Finance Research Institute, University of Warwick, UK

Speed up time to market / application development
Deliver competitive advantage
Thread Safety
Growth strategy
Product Details
Product Demonstrations

One of the key benefits to MATLAB users using the NAG Toolbox for MATLAB is the extensive routine documentation for every routine accessible from the Toolbox. Included in the documentation for each NAG Library routine is example MATLAB code showing how to call the routine. The index is provided in HTML format and each routine's documentation includes a link to a printable PDF file.

The NAG Toolbox for MATLAB Manual, Mark 25

To illustrate how easy the NAG Toolbox for MATLAB is to use, we demonstrate how to call some popular NAG routines, and use MATLAB's plotting facilities to view the results below.

Derived from NAG Chapter

The C05 chapter
The E01 Chapter
The E02 Chapter
The E02 Chapter
The E04 Chapter
The D01 chapter
The G Chapter
The G03 chapter
The G05 chapter
The G13 chapter
The S Chapter

The previous mark of the NAG Toolbox for MATLAB Manual is still available: Mark 24.


The NAG Toolbox for MATLAB® is the largest and most comprehensive single numerical toolkit that both complements and enhances MATLAB®. The NAG Toolbox for MATLAB contains over 1,500 functions that provide solutions to a vast range of mathematical and statistical problems. The functionality contained within this toolbox gives a 'one-stop' solution to your numerical computational needs.

Services and Support

Outstanding service and support from our expert team
First line technical support when you need it

NAG’s Technical Support Service is provided by a team of specialists in numerical and statistical software development, in fact the NAG Library and Compiler development team share responsibility for the support of our software. We strongly believe that in order to effectively support complex software the technicians must be both experienced and understand the intricacies of the computational techniques. This conviction is reflected in the composition of the team most of whom are qualified to PhD level and have combined experience of software support in excess of 50 years.

NAG accuracy is quality assured

NAG provides accurate, documented, numerical software and services to help you make sure that your results are accurate. The validity of each NAG routine is tested for each platform that it is enabled for. Only when an implementation satisfies our stringent accuracy standards is it released. As a result, you can rely on the proven accuracy and reliability of NAG to give you the right answers. NAG is an ISO 9001 certified organization.

Reap the benefits of NAG expertise

The numerical codes that underpin the results from your software are not future proof. While the mathematics does not change, the codes have a limited lifespan because of new hardware structures, mathematical innovation and changes in application needs. NAG Numerical Services help you and your organization find and implement the optimum numerical computation solutions. NAG works with your team to impart skills and techniques that will help solve your numerical software problems.

Expert teaching and instruction from numerical experts

Your users, developers and managers can all benefit from NAG's highly regarded training courses. All of the training courses listed have been delivered successfully either from NAG offices or at client premises. Training courses can be tailored to suit your particular requirements and be targeted to novice, intermediate or experienced levels. Specialized mentoring and development programs are also available for HPC managers.

Working in collaboration with industry and academia

NAG was founded on collaboration as an inter-University collaborative venture combining the talents of mathematicians and computer scientists. NAG has continued to collaborate with individuals and organizations over the past four decades and today longstanding and new partners are delivering tangible benefits to users and students all over the world.