필터 지우기
필터 지우기

'Go To' button in Matlab 2017 editor

조회 수: 2 (최근 30일)
Rana Ahmed
Rana Ahmed 2017년 10월 11일
댓글: Rana Ahmed 2017년 10월 11일
In Matlab 2017, The 'Go To' button in the matlab editor doesn't show the sections inside a function. It used to work fine with older versions. Anyone encountered this and has a solution?
  댓글 수: 2
Adam
Adam 2017년 10월 11일
What do you mean by 'sections'? I've only ever known it show functions, but I guess I'm just not using whatever 'sections' are so have never noticed.
Greg
Greg 2017년 10월 11일
There have been 2 releases per year every year for 10 years now...
WHICH 2017 are you having trouble with?

댓글을 달려면 로그인하십시오.

채택된 답변

Greg
Greg 2017년 10월 11일
I just confirmed that the editors in R2016a, R2017a and R2017b all have the "SHOW SECTIONS" option - at least when sections actually exist in the file. It does appear that R2016a is one or the other, where R2017a and R2017b show functions, or sections + functions.
For others out there, code sections are delimited by "%%" at the beginning of a line. The following would give you 2 sections labeled "Parse inputs" and "Do the work" in the Go To button.
%%Parse inputs
if nargin < 2
arg2 = randi(10);
end
%%Do the work
out = arg1.*arg2;
  댓글 수: 1
Rana Ahmed
Rana Ahmed 2017년 10월 11일
Thanks a lot! missed the white font on the right, but this works for me now

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by