creating sine wave with variable amp and freq using matlab function block goes wrong !!
2 views (last 30 days)
Show older comments
i'm trying to create sine wave with variable freq and amp decaying with time but every thing goes wrong in the middle as u can see and i can't figure it out till now can any one help me with this problem !? thanks in advanceis
my code is
function [Va,Vb,Vc,] = BACK_EMF_ph(clk,f,amp)
Va=amp*(sin(f*2*pi*clk));
Vb=amp*(sin((f*2*pi*clk)-((2*pi)/3)));
Vc=amp*(sin((f*2*pi*clk)+((2*pi)/3)));
5 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!