0
$\begingroup$

In my signal processing class I have some basic tasks working with sinus signals in Matlab. I have two sinusoidal signals with 1kHz and 3kHz and sampling rate of 16kHz. The next task says 'Create a linear combination of the two signals and save the result in a new vector'.

I don't really understand what's meant by the linear combination. I remember something vague about having to add them with weights but I'm don't quite comprehend what that does or how to do it.

$\endgroup$
0
$\begingroup$

As you said, a linear combination of two signals $x_1[n]$ and $x_2[n]$ is simply

$$y[n]=w_1x_1[n]+w_2x_2[n]$$

with real-valued weights $w_1$ and $w_2$.

$\endgroup$
  • $\begingroup$ How do I choose the weights? Are they depending on the frequency? $\endgroup$ – Pulz Dec 19 '18 at 22:29
  • 2
    $\begingroup$ @Pulz That question should probably be posed to your instructor. $\endgroup$ – MBaz Dec 19 '18 at 22:48
  • 1
    $\begingroup$ "Create a linear combination ..." doesn't say anything about the weights, does it? So just choose what you fancy. $\endgroup$ – Matt L. Dec 20 '18 at 8:12

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.