Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%%%%%%%%%%%%%%%% SINUS %%%%%%%%%%%%%%%%%%%%%%
- function[n,x]=sinus11(A,f,fs,T,faza)
- x=zeros(1,fs*T);
- n=x;
- k=1;
- for i=0 : 1/fs : T
- n(k)=i;
- x(k)=A*sin(2*pi*f*i+faza*pi/180);
- k=k+1;
- end
- %lub
- function[n,x]=sinus1(A,f,fs,T,faza)
- n=[0:1/fs:T]
- x= A*sin(2*pi*f*n+faza*pi/180)
- % >>[t,y]=sinus(10,2,200,2,0);
- % >>plot(t,y);
- % >> grid on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement