bangbi
Junior Member level 1
- Joined
- Sep 12, 2013
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 99
I have a signal discrete, then I use filter to convert signal discrete to signal continue.
Now, i want to convert signal continue to signal discrete, but i don't know how to do.
i would appreciate if any one can help me as soon as you possible
thanks you again !
have a nice day
this code:
%filter
clear all
close all
clc
x=randi([0 7],1,10);
y=rectpulse(x,20);
[a b]= butter(10,1/20);
z1=filtfilt(a,b,y);
n=1:length(z1);
subplot(2,1,1)
stem(x,'r');
subplot(2,1,2)
plot(n,z1,'r',n,y,'g')
legend('signal discrete','signal continue')
Now, i want to convert signal continue to signal discrete, but i don't know how to do.
i would appreciate if any one can help me as soon as you possible
thanks you again !
have a nice day
this code:
%filter
clear all
close all
clc
x=randi([0 7],1,10);
y=rectpulse(x,20);
[a b]= butter(10,1/20);
z1=filtfilt(a,b,y);
n=1:length(z1);
subplot(2,1,1)
stem(x,'r');
subplot(2,1,2)
plot(n,z1,'r',n,y,'g')
legend('signal discrete','signal continue')