필터 지우기
필터 지우기

Is there any function for automatic completion of a structural variable?

조회 수: 1 (최근 30일)
Song Lee
Song Lee 2013년 10월 8일
답변: Song Lee 2013년 10월 10일
For example, when I type a variable of handles of a control on GUI, matlab doesn't show some variables available in the structural handles.
Is there any way to see whole list of variables in a struct at once when I type like, handles.blahblah.
When I was using MFC, there was such a function in Visual Studio and it was really convenient.
Please let me know and I'd really appreciate it.

채택된 답변

Jan
Jan 2013년 10월 9일
It depends. When the program is running and e.g. stopped by the debugger, you can use the TAB-autocompletion. But during editing, the field names of a struct (not "structural", which is something else) are not necessarily known, such that an auto-completion cannot be successful. A static code analysis might be misleading also, because fields can be created dynamically also. Example:
S.Field1 = 1;
if rand > 0.5
S.Field2 = 2;
else
S.Field3 = 3;
end
S.[Auto-completion cannot work here!]

추가 답변 (1개)

Song Lee
Song Lee 2013년 10월 10일
Oh... okay.
Thank you very much for your input. I appreciate it.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by