Click here to Skip to main content
15,920,111 members

Comments by turkmani_11 (Top 4 by date)

turkmani_11 12-Aug-22 1:53am View    
sorry, what im getting is a straight line, what i should get is a sine wave.
turkmani_11 12-Aug-22 1:16am View    
how can i make them match ? how can i write t = 0:1/fs:nCyl*1/f; in c# language?
turkmani_11 12-Aug-22 1:16am View    
1 fs= 96000;
2 f= 1000;
3 nCyl=1;
4 t=0:1/fs:nCyl*1/f;
5 x=sin(2*pi*f*t);
6 plot(t,x)
i just want to know how to write this above formulas in c# language. as i said there is no errors the graph is not correct it will plott a stright line what i should get is a one cycle sine graph and its plotting something else if you try the above code in matlab you will understand what i should get
turkmani_11 11-Aug-22 9:10am View    
i have updated my question sir , i hope u can understand better now