rootuss

2 sygnał sinus K

Oct 28th, 2019
190
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function[n,x]=sinus(A,f,fs,T,faza)
  2. n=[0:1/fs:T]
  3. x= A*sin(2*pi*f*n+faza*pi/180)
  4.  
  5.  
  6. >> [t2,y2]=sinus(20,3,200,45,2)
  7. >> hold %zatrzymanie
  8. >> plot(t2,y2,'r')
  9. >> help plot
RAW Paste Data