What's the difference between % and %% for comments?

前端 未结 3 1078
傲寒
傲寒 2021-02-13 06:35

The MATLAB editor automatically highlights all content after %% comments, and text after %% in the same line are turned bold. But what\'s the essential

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-13 06:42

    From a syntax point of view, they are both comments.

    In the Matlab editor, Matlab parses %% delimited blocks as "sections" which you can run as a unit independent of running the whole script.

提交回复
热议问题