I am beginner in Matlab and I have not time for learning it. So I have next question.
I work with string data type like x = 2; y = 3; z = x + y;. I need to declare some variables and work with them. Can I add variables to stack? Can I write function like
function addVar(name, value) {
stack[name] = value;
}
You can use cell arrays:
This will generate
and then you can use it, for example, like this: