Are there more efficient ways to build and update an associative array?
cheating and looking at matlab documentation, they point to Map containers objects as being specifically built for key-value pair mapping, and it appears Octave has a compatible implementation. see: