How to do group commenting without commenting each line in Matlab?

前端 未结 5 1235
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 07:52

How can I comment a group of lines without commenting each line?

ie like \'c\'

/*
printf(\"hello\");
printf(\"there\");
*/

in Matla

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 08:19

    Can I comment a block of lines in an MATLAB file using /* ... */ as I can in C?:

    %{
    ...
    Block of COMMENTS HERE
    ...
    ...
    %}
    %CODE GOES HERE
    plot(1:10)
    

提交回复
热议问题