Note that there are some explanatory texts on larger screens.

plurals
  1. POshaping a signal using another signal
    primarykey
    data
    text
    <p>Greetings All I have a signal labeled 1) and I have another triangle signal labeled 2) that I would like to have it molded to (I don't want to filter the signal just mold it to fit within the triangle shape). Does anyone know the best way to do this? Do I just multiply / add the signals together? here's the image link below <a href="http://dl.dropbox.com/u/6576402/Diagram1.jpg" rel="nofollow">http://dl.dropbox.com/u/6576402/Diagram1.jpg</a> tia sal22 </p> <p>Here's some matlab/octave code I've tried like @mor22 suggested I post as you can see I tried a bunch of different y3 to see what happens.</p> <pre><code>%wave shapping clear all fs=1000; %sample frequence should be 44100 for cd quality x=linspace(0,2*pi,fs); y=sin(4*x); %f3=max(min(f1,abs(f2)),-abs(f2)) y2=1*asin(sin (x+pi/2)); %arcsin creates comples number y2=y2/abs(max(y2)); %make sure y2 is 1 or under 1 %y3=max(min(y,abs(y2)),-abs(y2)); %y3=y2.*y y3=y2+y; y3=y3/abs(max(y3)); %make sure y3 is 1 or under 1 plot(x,y,'g',x,y2,'r-',x,y3,'b*'); </code></pre> <p>and a link to the image of the plot <a href="http://dl.dropbox.com/u/6576402/questions/Screenshot.png" rel="nofollow">http://dl.dropbox.com/u/6576402/questions/Screenshot.png</a></p> <p>The Green is the original signal. The Red sawtooth wave is the envelope I want it to follow/be bounded by. The blue is the final wave I'm having problems with </p> <p>An example of what I'm trying to do with out the animation of course I just want the signal to be bounded like this, but bounded using a sawtooth wave I added the link below because I can only post one link as a new user ocw.mit.edu/courses/mechanical-engineering/2-062j-wave-propagation-fall-2006/simulations/group_velocity/grpvel.gif</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload