change: upudate matlab function