結果 : define function inside script matlab