matlab model reference vs library