I am using a parent function that calls another child (nested) function. This child function creates a new variable inside the parent's local workspace, using "assignin('caller', 'newVariable')". How can I use this "newVariable" in the parent function's body to evaluate it?
MATLAB: Can I create local function variables at runtime and are how are they evaluated subsequently
anonymouslocalMATLABnestedobjectorientedprogrammingshadow
Related Question
- How to save variables from within an app created in App Designer to use the variable from other function or script
- Do I receive ‘Error using smimport_implementation’ when using the ‘smimport’ function to import a CAD model into Simscape Multibody
- Send Variable to Workspace In Middle of a Function
- How to assign a timer callback to call a function whose input arguments do not include “obj” and “event” but include “arg1” and “arg2”
- How to index into a structure/cell variable which is not yet evaluated and hence is not in the workspace
- Does the error “Attempt to execute SCRIPT settings as a function: C:\..\..\..\settings.m occur and how to fix it
- How to programmatically call “exampleModel(…,’compile’)” using a variable for the model name
- How do you order table columns based on a vector with their names
Best Answer