how to plot a full sine wave using quarter wave in MATLAB?
Show older comments
i have genearted quarter sine wave values and saved it in an array and plotted it to get a quarter sine wave. from this array how can i generate a whole sine wave?
2 Comments
Kevin Phung
on 5 Feb 2019
how were those values generated?
yuvarani divakaramoorthy
on 8 Feb 2019
Answers (1)
Andrey Kiselnikov
on 5 Feb 2019
1 vote
Did you mean this:
phase = 0:0.01:pi/2;
q_wave = sin(phase);
plot ([q_wave,fliplr(q_wave),q_wave.*-1,fliplr(q_wave.*-1)]);
?
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!