Is there a way to know from fig file which code file created it?

조회 수: 12 (최근 30일)
Eli Borodach
Eli Borodach 2016년 6월 5일
편집: dpb 2016년 6월 5일
Hello all, it may be impossible, but if the fig files contains this data this would make my life much easier. Is there a way to know from fig file which code file created it?
Thanks in Advance
  댓글 수: 4
Image Analyst
Image Analyst 2016년 6월 5일
I guess you could run all the fig files and visually match what figures they created with what figures you have in advance. Not automatic but it will get the job done.
Walter Roberson
Walter Roberson 2016년 6월 5일
In the question a few years ago, the user had thousands of them (or was it tens of thousands?)

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

답변 (1개)

dpb
dpb 2016년 6월 5일
편집: dpb 2016년 6월 5일
No. Bestest you can do is create a script file that will reproduce the figure from the internal data, but it wouldn't be able to recreate the data itself from some other calculation (obviously?).
Won't help with existing but going forward, if this were to be important and you can modify the creation of these figures, one could add a 'Tag' property value that did contain that information.
  댓글 수: 4
Walter Roberson
Walter Roberson 2016년 6월 5일
I would not use the Tag property, as GUIDE relies heavily on Tag. I would suggest UserData or AppData
dpb
dpb 2016년 6월 5일
편집: dpb 2016년 6월 5일
Guess that'd be true if they use a GUI, indeed...seemingly a case where a later developer wish/need came in and usurped an existing facility thereby making it less or unusable for the original purpose in all cases? Since I "don't do windows" I didn't think of that possible collision, granted.
I did wonder while writing the above (but didn't test) whether the 'UserData' could be a cellstr array which could conceivably then hold the m-file content. Not that I'd recommend it; I'd use some other archival mechanism instead, but...altho it could always be converted to an array of char() so appears would be possible.

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

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by