Utility Functions and @struct extensions for Matlab