User-defined Functions (1/28) Scripts In chapter 3 we have already learned the top-down design Programmers break the algorithm down into logical subdivisions called subtasks and finally the whole subtasks are turned into Matlab code. Problem:there is no way to code,verify and test each subtask independently before combining the subtask into the final program... Solution:Matlab has a special mechanism designed to make subtasks easy to develop and debug independently by using a separate function before building the fi同僑k学 AW program TONGJI UNIVERSITYUser-defined Functions (1/28) Scripts In chapter 3 we have already learned the top-down design. Programmers break the algorithm down into logical subdivisions called subtasks and finally the whole subtasks are turned into Matlab code. Problem: there is no way to code, verify and test each subtask independently before combining the subtask into the final program… Solution: Matlab has a special mechanism designed to make subtasks easy to develop and debug independently by using a separate function before building the final program