title: Saving structure from GUI MATLAB
body: <p>I made software in MATLAB to detect some features. Once I have the centroid of the feature, I would like to press a button and save the feature to a .m file.</p>
  
  <p>Since I will have different features, each structure, when the button is pressed, should add itself to the same file... at the end I would like to have a vector of structures. In C++ it would be something like generating an empty vector, v... And when the button is pressed I would call something like v.push_back().. How can I do this?</p>
  
  <p>I implemented everything already. I just need to know how to create a vector of structures (I do not know the size of the vector) and then I need to know how to add a structure to the vector. At the end I need an .m file with a vector of structures.</p>