matlab: match changed discrete material model/ increase memory efficiency

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