update matlab grid example