필터 지우기
필터 지우기

How can i trace back the variable from my workspace?

조회 수: 2 (최근 30일)
ARN
ARN 2019년 12월 2일
댓글: Adam Danz 2019년 12월 2일
I have received one application which have 30+ MATLAB functions. With the GUI interface i calculate some values which is in the Workspace. Is there a way i can trace back one variable as to in those 30+ function .m files which function it was calculated in?
  댓글 수: 4
Rik
Rik 2019년 12월 2일
Any documentation should be included in the app itself, if it is not part of Matlab itself.
Adam Danz
Adam Danz 2019년 12월 2일
"the output of the app is struct with some values"
Here are a couple of ideas.
  1. If the value you're searching for is within a field named data.struct.dsp.refv, search your code for which function produces "refv". If that's too vague (ie, there are many functions where that is found), then you could add "dsp.refv" and so on. Hopefully the functions are modular enough that the output isn't affected by many of the functions.
  2. With structure outputs I often include a "readme" field when producing output. This field contains the function name and a time stamp when the data was produced. Here's an example.
data(i).struct.dsp.readme = sprintf('This output produced in MyFunct() function on %s',datestr(now));

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

답변 (0개)

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by