結果 : how to create objective function in matlab