Are forward declarations supported in MATLAB?

后端 未结 2 1034
太阳男子
太阳男子 2021-01-17 14:54

Is it possible to use a function in a m-file, which is implemented in a later part of the same file: in similar style to other programming languages such as C?

2条回答
  •  执念已碎
    2021-01-17 15:39

    You can use the same m-file for implementation of many functions using a static class:

    What was the original reason for MATLAB's one function = one file and why is it still so?

提交回复
热议问题