Can an APP access the calling functions workspace?

2 次查看(过去 30 天)
If I execute an APP can it access the workspace of a function I am debugging?
I am trying to write an APP that will plot my custom data types while debugging within a function. As a function my plotting tool can access the callers workspace with evalin('caller',...) but when converted to an APP this fails. Using dbstack within the APP I see that the function the breakpoint is within is several levels up from the APPs workspace. Since evalin does not work recursively am I out of luck?
I am trying to make the plotting tool as easy to use as I can so having to declare data in the base workspace or with setappdata is not desirable. (My APP can access the base workspace but data will not always be there.)
I could always run my plotting tool as a function but it would be nice if I did not have to type the function name - clicking on an APP button is easier and does not require remembering the name. There is a reason for APPs after all :-)
Thanks for any help.
Edit: I have learned that I can add functions under Home/Favorites this should get me the functionality I am looking for; but I am still interested in doing this as an APP if there is a solution.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by