如何在不评论每一行的情况下评论一组行?
即喜欢'c'
/*
printf("hello");
printf("there");
*/
Run Code Online (Sandbox Code Playgroud)
在Matlab中,我知道这样做的唯一方法是评论每一行
%disp('hello')
%disp('there')
Run Code Online (Sandbox Code Playgroud)
我有100行评论,我更愿意将其评论为'c'.
谢谢
Fra*_*urt 14
我可以使用/*...*/来评论MATLAB文件中的一行代码吗?:
%{
...
Block of COMMENTS HERE
...
...
%}
%CODE GOES HERE
plot(1:10)
Run Code Online (Sandbox Code Playgroud)
1)MATLAB v7 +:
%{
...code to be commented
%}
Run Code Online (Sandbox Code Playgroud)
2)使用编辑器:
选择所有行,然后选择切换注释或菜单中的某些内容.在那
归档时间: |
|
查看次数: |
12424 次 |
最近记录: |