% ECE 1250 S12 Lecture M12 % Today's lecture will start with the writing of a % function to implement a digital filter. The digital filter example is in % dig_filter.m % The filter passes low frequencies and blocks high frequencies. % Next, we consider functions that translate phasors from rectangular to polar form and % vice versa. The phasors will be represented in a unique way: % [a+jb, 0] (1st value complex, 2nd value zero) represents a + bi (rectangular form) % [A, phi] (1st value real, 2nd value real) represents Ae^i*phi (polar form) % phi is in degrees % % r2p(phasor) will return a rectangular form for any phasor input % p2r(phasor) will return a polar form for any phasor input % ph_plus(array of phasors) will return the sum of phasors % ph_mult(array of phasors) will return the product of phasors