Prev: Problem with Coulomb and Viscous Friction
Next: DISSERTATION HELP (9212652900) India, Dissertation UK, Plagiarismfree Diss
From: Rick T on 15 Feb 2010 05:25 Greetings all I'm trying to figure out a way to 1)phase shift 2)vertical shift 3)increase/decrease the amplitude 4) increase/decrease the frequency of a periodic signal (x). I tried multiplying the signal by cos(phi)+i*sin(phi) where phi is the new phase of the signal but the phase stays the same and the amplitude changes. My thoughts where to somehow integrate the sine wave model into it. http://jwelker.lps.org/eZedia/sin_modeling/frame_5.html Is this possible? Example code: Fs = 100e2; t=(0:Fs)/Fs'; x=sin(2*100*t); % Now phase delay by pi/4 radians y = x*cos((pi/4)+i*sin(pi/4)); % Finally take the real part (or the imaginary if you want) plot(t(1:1000),real(x(1:1000))); hold on; plot(t(1:1000),real(y(1:1000)),'k'); thanks sal22 |