Typescript Object Type Function Matlab Example Problems