w****h 发帖数: 212 | 1 我需要把一段很长重复使用的代码定义成一个过程(无输入参数),最好就放在同一个
.M文件里,该如何定义呢?
难道必须放在外部文件吗? | r*********r 发帖数: 3195 | 2 i think you can define multiple functions in one file, only one of the
function name needs to be the same as the file name. the rest functions are
considered private, and cann't be called by functions from other files.
just like in java, you can only define one public class in each java file,
but you can always define multiple non-public classes. |
|