Why does data deleted from the workspace after execution the code ?
6 views (last 30 days)
Image Analyst on 15 Aug 2022
Because it's a function, not a script. Variables from a script wil remain in the base workspace after the script finishes. With functions, once the function finishes and returns, the variables internal to the function vanish.