DAMTP Computing News

1587) 13/05/11  NAg toolbox for Matlab R2010b

SUMMARY: The NAg toolbox for Matlab is available in our R2010b installation

Those running the test version of Matlab R2010b since 30th April may have noticed that we quietly added the NAg toolbox for matlab. This should work on all supported platforms (sl5 linux 32-bit/64-bit and Intel OSX 64-bit).

Running 'ver' will now list the 'NAG Toolbox' though which one you see will depend on the version. We have mbl6a22dml mblux22dml mbmi622ddl installed to support our platforms.

You can test that it works by (for example) running a simple test routine like a00aa. e.g. that might report:

     >> a00aa
      *** Start of NAG Toolbox for MATLAB implementation details ***
     
      Implementation title: Linux/gfortran 64-bit
                 Precision: FORTRAN double precision
              Product Code: MBL6A22DML
                      Mark: 22.4
     
      *** End of NAG Toolbox for MATLAB implementation details ***

when run on a 64-bit linux machine.

As well as calling the NAg routines directly the matlab toolbox also provides comprehensive documentation about the NAg MK22 functions, which you can browse through, and a number of examples and demos.

Because of a clash between how NAg expect the toolboxes to be installed and how we actually install things, functions which manipulate the matlab path may not have the effect you want.

In particular restoredefaultpath will not set it to include the NAg toolbox, and if you use savepath the value saved will not work properly if loaded on a matlab running on a different platform.

If this defect causes problems for anyone please let us know. We do have a different solution which should avoid these problems but it is somewhat complex and so I would rather avoid it if it turns out not to be needed.

Please send any civil questions to help@maths.cam.ac.uk or complaints/abuse etc to jp107@damtp.cam.ac.uk as usual.

Search in all news items