How to turn a discrete to a continuous using t

1 Ansicht (letzte 30 Tage)
Matlaber
Matlaber am 9 Apr. 2019
Kommentiert: Matlaber am 9 Apr. 2019
I want to turn a discrete value to a continous using a t as time.
(I also not sure what i asking is correct)
Basically, I want my "y" in continous time
for i=0:1000 %here we are generating the modulated wave
if m(i+1)==0
y(i+1)=c2(i+1);
else
y(i+1)=c1(i+1);
end
end
y = mm
  1 Kommentar
Matlaber
Matlaber am 9 Apr. 2019
Or I want to add in "t" for this below
[B, A] = butter(1,0.04, 'low'); % Low Pass Filtered (Low Order)
y = filter(B,A,y);
change to some kind of:
y = ca .* sin(2*pi*t);
Thanks.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by