Comment out some part of a line in matlab function

前端 未结 2 1141
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 10:52

As the question suggests I want to comment out some part of a line in MATLAB.

Also I want to comment out some part of a line not till the end of line.

Reason

2条回答
  •  猫巷女王i
    2020-12-06 11:20

    Nope, this is not possible. From help '%':

    %   Percent.  The percent symbol is used to begin comments.
        Logically, it serves as an end-of-line character. Any
        following text on the line is ignored or printed by the
        HELP system.
    

    So just copy-paste the line, or write a tiny function so that it's easier to switch between versions.

提交回复
热议问题