【发布时间】:2016-09-26 05:13:45
【问题描述】:
我有一些这样的功能:
result = myfunc(arg1, ...
arg2, ...
arg3);
我希望注释掉 arg2 并添加其他内容:
result = myfunc(arg1, ...
% arg2, ... <-- I get a red squiggly underline at the last dot
arg2b, ... <-- and under arg2b
arg3); <-- and under the closing parenthesis
但是 matlab 不允许我在续行中添加注释,并且我所有的 Google 搜索都会出现多行语句或多行 cmets,但不会出现多行语句中的 cmets。
错误是“Parse error at : usage might be invalid Matlab syntax”。
有没有办法做到这一点?
实际上,参数是带有完整路径的长文件名,将它们向上移动会导致代码非常不可读。
【问题讨论】:
标签: matlab