Advertisement
rootuss

2 sygnał sinus K

Oct 28th, 2019
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.17 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement