necrobutcher
Newbie level 1

I wish to write an embedded MATLAB function which adds a phase shift to a sinusoid. The i/p to the function is the phase shift desired and the o/p will be the phase shifted sinusoid. How should I go about it? I'll be very grateful for any assistance.