MATLAB: How to access a variable in workspace with a string

accessloadstringvariable

I'm trying to make a simple menu system. I have all the variables I need in the workspace, and I have the name of the variable I want to access stored as a string, how do I open the workspace variable using that string?

Best Answer

Figured out how, used the eval() function.