Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ Yeah I realized I needed to review taking the inner product of complex vectors. So is it that the input signal gets treated like a complex vector where every element has the 0i component? If this is the case then if I'm using MATLAB to take the inner product of the test signal and a Kth complex sinusoid, would it look something like dot(complex_sinusoid, test_sig)? $\endgroup$ Commented Apr 29, 2016 at 4:16
  • $\begingroup$ @TSIguy Your code above looks fine... modulo a couple of quibbles I have; see my update. $\endgroup$ Commented Apr 29, 2016 at 11:46
  • $\begingroup$ generate_sine taes in a frequency in Hz, phase offset, amplitude value, sampling frequency, and signal length all respectively. Also I originally tried your suggestion of negating the complex part, but I wasn't sure if the dot() function automatically takes the conjugate of a complex vector. I've since switched some things around and now I get the proper results. Thanks! $\endgroup$ Commented Apr 29, 2016 at 17:20