Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Replicate some ability from built-in "functions" routine

조회 수: 1 (최근 30일)
Max
Max 2012년 12월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
I recently found the function "functions" which will give some nice data about a give function handle which is apparently hidden under usual circumstances. In particular, you can access the parameters passed when the function was created and the workspace environment.
I would very much like to have a version of this which will work if MATLAB changes the function "functions" later on, at least to access the workspace. Note that in accordance with the warning in the documentation, I would not depend on such a function in regular programming!
Thanks in advance folks.

답변 (1개)

Wayne King
Wayne King 2012년 12월 6일
편집: Wayne King 2012년 12월 6일
Is there something you're using from functions() that
>>which poly
or
>>which -all poly
doesn't give?
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 12월 6일
"which" does not give access to the workspace for nested functions.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by