Thanks all of you for answering so quickly. Sadly I really wanted all in one line, but the option you guys gave me serves perfectly fine.
Can I comment only a section or part of a line?
조회 수: 49 (최근 30일)
이전 댓글 표시
Example of what I wish to do:
plot(x1,y1,{comment only inside brackets},x2,y2);
Is there any way to comment only specific parts of a line of code/text while the rest stays uncommented?
Also /* */ only seems to work on c code not on all text, and I wish to do this as I showed above on a plot.
채택된 답변
추가 답변 (2개)
Voss
2022년 4월 2일
I think the best you can do is this:
plot(x1,y1, ...{comment only inside brackets},
x2,y2);
댓글 수: 0
Alan Stevens
2022년 4월 2일
Like this:
x = linspace(0,2*pi,100);
y1 = sin(x);
y2 = cos(x);
plot(x,y1,... % comment
x,y2)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!