You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
348B

  1. function [phase,magnitude] = phamag(wave1,wave2,frequency,T,length)
  2. %PHAMAG Summary of this function goes here
  3. % Detailed explanation goes here
  4. wave = [wave1;wave2];
  5. fft1 = fft(wave);
  6. function g = phasefft(wave,length,T)
  7. f = fft(wave);
  8. g = abs(f(1:length/2+1)/length);
  9. figure;
  10. plot(f)
  11. end
  12. end