Typescript Onclick Call Function Matlab Example Problems