Accessing variables in m file without executing it
이전 댓글 표시
I have a .m file that will only run as part of a giant program. However, I want to access some variables in it without running this program. Is this possible?
댓글 수: 1
Stephen23
2017년 8월 10일
"Is this possible?"
possible: yes.
good idea: no.
Basically you will have to write your own code parser. It would be better to write your code so that those variables are stored/saved somewhere more accessible (e.g. a .mat file, a CSV file, a function that defines parameter values, etc.).
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!