How do I access a base workspace variable from within a MATLAB function?
Show older comments
I want to change the values of variables in the base workspace, from inside a MATLAB 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.
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Identification in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!