Matlab external interface