How can I change a square wave into a sign wave with the graph provided?
1 view (last 30 days)
Im trying to turn this square graph into a sign wave. Any thoughts on how I would go about doing that? The graph provided is how it looks now but it needs to be more of a sign wave.
Here is the code Ive made so far:
frequency = 11.4;
phase = 50;
amplitude = 1;
Z = amplitude*sign(sin((2*3.1415*frequency.*X)+(phase)));