matlab example, effect not good after testing