필터 지우기
필터 지우기

How to open / step-in generic function in debug mode?

조회 수: 5 (최근 30일)
Paul
Paul 2016년 8월 4일
편집: Konark Kelaiya 2016년 8월 5일
Hello,
by the phrase generic I mean a function that already exists within Matlab core software, such as finitedifferences that is used within validateFirstDerivatives - a helper function of fmincon (Optimisation toolbox).
The problem is that I need to check how software counts finite differences, and stepping into this function will help. However, when I create a breakpoint at an appropriate line and hit on step in button in debug mode, there is only white arrow indicating that debbuger did step into, but no tab with the function code appears. I can check finitedifferences call stack in debugger, but nothing more.
Is there a way to open such functions?
  댓글 수: 2
per isakson
per isakson 2016년 8월 4일
No, not by a user. finitedifferences comes in the form of p-code. See Building a Content Obscured Format with P-Code.
Paul
Paul 2016년 8월 5일
Soo... looks like we're not authorised to look into how finite differances are obtained in Matlab :( Thank you for your answer.

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

채택된 답변

Konark Kelaiya
Konark Kelaiya 2016년 8월 5일
편집: Konark Kelaiya 2016년 8월 5일
MATLAB in-built functions comes with different category
1 - P-code (encoded form of function) - Can't be debugged at all.
2 - Mex Code (Compiled code Where in actual code is implemented in C and compiled to create MATLAB executable) - Can't debug without Source Code.
3 - MATLAB open editable functions - Only this functions are open to edit and alter the code as well debug

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by