Set a breakpoint there at that line (learn how to use the debugger if you don't know already). Then, when it stops, type M in the command window and hit enter. See what it says. If M is a structure, it will list something like this:
If you see something else (which you probably will), then M is not a structure and you can't do things like M.b and M.f.