how to plot a full sine wave using quarter wave in MATLAB?

2 次查看(过去 30 天)
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 个评论
yuvarani divakaramoorthy
i have generated the values using piece wise approximation with two ROM tables and added it. stored those added values in an array

请先登录,再进行评论。

回答(1 个)

Andrey Kiselnikov
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)]);
?

类别

Help CenterFile Exchange 中查找有关 Get Started with DDS Blockset 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by