Can you help with my MATLAB homework? At least give me a hint on how to do it.
1) In general, for a three-phase excited P-pole synchronous machine, each of the windings within a single coil creates a time-varying magnetic flux density vector orthogonal to its surface. When vectorially summed in space, these vectors create a rotating magnetic flux density vector. To visually verify this phenomenon, please write a MATLAB or Octave code that will create a movie demonstrating the rotation of the resultant magnetic field intensity vector for a three-phase synchronous machine. Create the code with the number of poles as an input variable to demonstrate and report the effect of the number of poles on the mechanical frequency when the electrical frequency is kept constant and set at 0.1 Hz.