sristi das - 2019-04-11

I am trying to build a spherical mesh in toast++ but I am facing some problem while importing the mesh from gmsh to matlab. On running the following command from matlab prompt:
mesh = toastMesh('sphere.msh','gmsh')
I get the following error:

Attempt to reference field of non-structure array.

Error in toastReadGmshMesh (line 11)
vtx = gmsh.POS;

Error in toastMesh (line 78)
obj = toastReadGmshMesh(arg1);
Can you please tell me why am I getting this error?