(1)purpose:state the problem clearly and simply
(2)define input and output:all variables and index
(3)pseudocode(design the algorithm):in a text(top-down design)
(4)write matlab code
(5)test:验证和调试

更多推荐

编写代码的步骤