updated catstruct to 3.0, modified for R2013a compatibility