I want to change the values of variables in the base workspace, from inside a function. For example, I have a function 'myfcn'. It accepts strings as input, which contain the names of variables that exist in the base workspace. I want to change the values of these variables in the base workspace, without having to pass them as output from the function.
MATLAB: How to access a base workspace variable from within a function
accessassigninevalinMATLABvariableworkspace
Related Question
- How to move a variable from the global workspace to a local workspace
- Function failed to call the variable from workspace.
- Bring To Workspace variables from Simulink to base workspace from a matlab function
- Moving large matrix from function workspace to base workspace
- How to access cell array of the base workspace variables from inside a GUI function
- Clear just base workspace
- Undefined variable “database1” or class “database1.X”
Best Answer