matlab: new function to add/set attributes to properties

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>