Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function[n,x]=sinus(A,f,fs,T,faza)
- n=[0:1/fs:T]
- x= A*sin(2*pi*f*n+faza*pi/180)
- >> [t2,y2]=sinus(20,3,200,45,2)
- >> hold %zatrzymanie
- >> plot(t2,y2,'r')
- >> help plot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement