Adding matlab control