Magic example

@haoxingz : could you please make sure that this works on master? I am currently getting this error on startup: 

    Undefined variable "json" or class "json.startup".

    Error in matlabserver (line 6)
    json.startup

It seems to me that it might be a simple thing, but I don't have time to look at this before our noon meeting tomorrow, because I have my grant deadline tomorrow. We really need this to work tomorrow...