Structure Function of M51 at Various Locations Within the Galaxy