Can I have a stack data structure in matlab?
For example a stack of integers where I can push elements in it like stack.push(i), get elements out of it like
stack.push(i)
You can roll your own or you can use someone else's, like this.
A very simple homemade stack would be an array with a count, the count pointing to the topmost item.