Angular resonance and change of the magnetic state of nanocrystallites in ribbons