<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>HELP by Khushi Khushi</title>
      <link>https://padlet.com/khushi28061/help</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2025-05-08 07:45:28 UTC</pubDate>
      <lastBuildDate>2025-05-08 09:58:42 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>FFT+DFT</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441474284</link>
         <description><![CDATA[<p>x = [1 2 3 4];  % Sample input sequence</p><p>n = length(x);  % Length of the sequence</p><p>subplot(2,1,1);</p><p>stem(x);</p><p>xlabel('Time');</p><p>ylabel('Amplitude');</p><p>title('Time Series');</p><p>y1 = fft(x, n);  % Apply FFT</p><p>subplot(2,2,2);</p><p>stem(abs(y1));  % Plot FFT magnitude</p><p>xlabel('Frequency');</p><p>ylabel('Amplitude');</p><p>title('Fast Fourier Transform');</p><p>% DFT Calculation</p><p>Y_dft = fft(x);  % Using FFT function for DFT</p><p>subplot(2,2,4);</p><p>stem(abs(Y_dft));  % Plot DFT magnitude</p><p>xlabel('Frequency');</p><p>ylabel('Amplitude');</p><p>title('Discrete Fourier Transform');</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 07:46:39 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441474284</guid>
      </item>
      <item>
         <title>EMG</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441474700</link>
         <description><![CDATA[<p>fs = 1000;</p><p>T = 1/fs;</p><p>t = 0:1/fs:1;</p><p>x = cos(2*pi*40*t) + randn(size(t));</p><p>[p, f] = periodogram(x, hamming(length(x)), length(x), fs, 'power');</p><p>subplot(2,1,1);</p><p>plot(f, 10*log10(p));</p><p>[pxx, f_pwelch] = pwelch(x, 500, 300, 500, fs);</p><p>subplot(2,1,2);</p><p>plot(f_pwelch, 10*log10(pxx));</p><p>xlabel('Frequency (Hz)');</p><p>ylabel('Magnitude (dB)');</p><p><br></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 07:46:55 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441474700</guid>
      </item>
      <item>
         <title>FIR Win</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441476843</link>
         <description><![CDATA[<p>clc;</p><p>clear;</p><p>% Filter design using Hamming, Blackman, and Hanning windows</p><p>% Input parameters</p><p>rp = 0.03; % Passband ripple</p><p>rs = 0.04; % Stopband ripple</p><p>fp = 1200; % Passband frequency</p><p>fs = 1700; % Stopband frequency</p><p>f = 9000;  % Sampling frequency</p><p>wp = 2*(fp/f); % Normalized passband edge</p><p>ws = 2*(fs/f); % Normalized stopband edge</p><p>% Calculate filter order</p><p>num = -20*log10(sqrt(rp*rs)) - 13;</p><p>den = 14.6*(fs - fp)/f;</p><p>n = ceil(num/den);</p><p>n1 = n + 1;</p><p>if rem(n,2) ~= 0</p><p>    n1 = n;</p><p>    n = n - 1;</p><p>end</p><p>% Hamming Window Filters</p><p>figure('Name','Hamming Window');</p><p>y = hamming(n1);</p><p>b = fir1(n, wp, y); % LPF</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,1);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('LPF - Hamming');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wp, 'high', y); % HPF</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,2);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('HPF - Hamming');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>wn = [wp ws];</p><p>b = fir1(n, wn, y); % BPF</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,3);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('BPF - Hamming');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wn, 'stop', y); % BSF</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,4);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('BSF - Hamming');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>% Blackman Window Filters</p><p>figure('Name','Blackman Window');</p><p>y = blackman(n1);</p><p>b = fir1(n, wp, y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,1);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('LPF - Blackman');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wp, 'high', y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,2);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('HPF - Blackman');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wn, y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,3);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('BPF - Blackman');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wn, 'stop', y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,4);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('BSF - Blackman');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>% Hanning Window Filters</p><p>figure('Name','Hanning Window');</p><p>y = hanning(n1);</p><p>b = fir1(n, wp, y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,1);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('LPF - Hanning');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wp, 'high', y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,2);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('HPF - Hanning');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wn, y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,3);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('BPF - Hanning');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p><p>b = fir1(n, wn, 'stop', y);</p><p>[h, o] = freqz(b, 1, 256);</p><p>subplot(2,2,4);</p><p>plot(o/pi, 20*log10(abs(h)));</p><p>title('BSF - Hanning');</p><p>xlabel('Normal Frequency');</p><p>ylabel('Gain (dB)');</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 07:48:19 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441476843</guid>
      </item>
      <item>
         <title>EEG</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441487079</link>
         <description><![CDATA[<p>x = [0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0, ...</p><p>     0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1, ...</p><p>     0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1, ...</p><p>     0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1,0,0.5,1];</p><p>e = randn(1, length(x));</p><p>y = conv(x, e, 'same');</p><p>h = ones(1, 26) / 26;</p><p>y1 = conv(y, h, 'same');</p><p>y2 = abs(fft(y1));</p><p>figure('Name', 'EEG Signal Processing');</p><p>subplot(3,2,1);</p><p>plot(x);</p><p>xlabel('Time'); ylabel('Amplitude');</p><p>title('EEG Signal');</p><p>subplot(3,2,2);</p><p>plot(e);</p><p>xlabel('Time'); ylabel('Amplitude');</p><p>title('Random Noise');</p><p>subplot(3,2,3);</p><p>plot(y);</p><p>xlabel('Time'); ylabel('Amplitude');</p><p>title('Noisy Signal');</p><p>subplot(3,2,4);</p><p>plot(y1);</p><p>xlabel('Time'); ylabel('Amplitude');</p><p>title('Filtered Output');</p><p>subplot(3,2,5);</p><p>stem(y2);</p><p>xlabel('Frequency'); ylabel('Amplitude');</p><p>title('FFT of Filtered Signal');</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 07:56:10 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441487079</guid>
      </item>
      <item>
         <title>ECG LEAD SYS</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441494997</link>
         <description><![CDATA[<p>x=[0,0,0,0.5,0.7,0.8,0.7,0.5,0,0,-1,-1.5,1,2,4,6,4,2,1,-1,-2,-</p><p>4,0,0,0,0,0.2,0.4,0.8,0,0,0,0,0,0,0,0.5,0.7,0.8,0.7,0.5,0,0,-1,-</p><p>1.5,1,2,4,6,4,2,1,-1,-2,-</p><p>4,0,0,0,0,0.2,0.4,0.8,0,0,0,0,0,0,0,0.5,0.7,0.8,0.7,0.5,0,0,-1,-</p><p>1.5,1,2,4,6,4,2,1,-1,-2,-</p><p>4,0,0,0,0,0.2,0.4,0.8,0,0,0,0,0,0,0,0.5,0.7,0.8,0.7,0.5,0,0,-1,-</p><p>1.5,1,2,4,6,4,2,1,-1,-2,-</p><p>4,0,0,0,0,0.2,0.4,0.8,0,0,0,0,0,0,0,0.5,0.7,0.8,0.7,0.5,0,0,-1,-</p><p>1.5,1,2,4,6,4,2,1,-1,-2,-</p><p>4,0,0,0,0,0.2,0.4,0.8,0,0,0,0];</p><p>subplot(3,2,1);</p><p>plot(x);</p><p>xlabel('time');</p><p>ylabel('amplitude');</p><p>title('ecg');</p><p>e=randn(80,1);</p><p>subplot(3,2,2);</p><p>plot(e);</p><p>xlabel('time');</p><p>ylabel('amplitude');</p><p>title('random noise');</p><p>y=conv(x,e);</p><p>subplot(3,2,3);</p><p>plot(y);</p><p>title('nosiy signal');</p><p>h=[1 1 1 1 1 1]/6;</p><p>y1=conv(h,y);</p><p>subplot(3,2,4);</p><p>plot(y1);</p><p>xlabel('time');</p><p>ylabel('amplitude');</p><p>title('fitered output');</p><p>y2=fft(y1);</p><p>subplot(3,2,5);</p><p>stem(y2);</p><p>xlabel('time');</p><p>ylabel('amplitude');</p><p>title('y2');</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 08:02:27 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441494997</guid>
      </item>
      <item>
         <title>NOISE AFFECTED FIR</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441497235</link>
         <description><![CDATA[<p>fs=160;</p><p>T=1/fs;</p><p>L = 10; % Length of signal</p><p>t = 0:1/fs:L; % Time vector</p><p>x=sin(2*pi*40*t)+sin(2*pi*60*t);</p><p>subplot(3,1,1);</p><p>plot(t,x);</p><p>x1=length(x);</p><p>NFFT = 2^nextpow2(x1); % Next power of 2 from length of y</p><p>f = fs*linspace(0,1,NFFT);</p><p>Y = fft(x,NFFT);</p><p>subplot(3,1,2);</p><p>plot(f(1:1024),abs(Y(1:1024)));</p><p>title('Single-Sided Amplitude Spectrum of y(t)')</p><p>xlabel('Frequency (Hz)')</p><p>ylabel('|Y(f)|')</p><p>b=fir1(25,0.5,'low');</p><p>h=filter(b,1,x);</p><p>i=length(h);</p><p>NFFT1 = 2^nextpow2(i); % Next power of 2 from length of y</p><p>f1 = fs*linspace(0,1,NFFT1);</p><p>Y1 = fft(h,NFFT1);</p><p>subplot(3,1,3);</p><p>plot(f1(1:1024),abs(Y1(1:1024)));</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 08:03:53 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441497235</guid>
      </item>
      <item>
         <title>LPF</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441498326</link>
         <description><![CDATA[<p>f = [0 0.6 0.6 1];</p><p>m = [1 1 0 0];</p><p>b1 = fir2(30,f,m);</p><p>[h,w] = freqz(b1,2);</p><p>subplot(4,2,1)</p><p>plot(f,m,w/pi,abs(h))</p><p>title('lowpass filter magnitude response');</p><p>ylabel('mag in db');</p><p>xlabel('Norm frequency radian/samples');</p><p>subplot(4,2,2);</p><p>plot(f,m,w/pi,angle(h));</p><p>title('lowpass filter phase response');</p><p>ylabel('phase in degree');</p><p>xlabel('Norm frequency radian/samples');</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 08:04:32 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441498326</guid>
      </item>
      <item>
         <title>HPF</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441498851</link>
         <description><![CDATA[<p>f = [0 0.6 0.6 1];</p><p>m = [0 0 1 1];</p><p>b1 = fir2(30,f,m);</p><p>[h,w] = freqz(b1,1);</p><p>subplot(4,2,3)</p><p>plot(f,m,w/pi,abs(h))</p><p>title('Highpass filter magnitude response');</p><p>ylabel('mag in db');</p><p>xlabel('Norm frequency radian/samples');</p><p>subplot(4,2,4);</p><p>plot(f,m,w/pi,angle(h));</p><p>title('Highpass filter phase response');</p><p>ylabel('phase in degree');</p><p>xlabel('Norm frequency radian/samples');</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 08:05:04 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441498851</guid>
      </item>
      <item>
         <title>BPF</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441500544</link>
         <description><![CDATA[<p>f = [0 0.4 0.4 0.6 0.6 1];</p><p>m = [0 0 1 1 0 0];</p><p>b1 = fir2(30,f,m);</p><p>[h,w] = freqz(b1,1);</p><p>subplot(4,2,5)</p><p>plot(f,m,w/pi,abs(h))</p><p>title('Bandpass filter magnitude response');</p><p>xlabel('Norm frequency radian/samples');</p><p>ylabel('mag in db');</p><p>subplot(4,2,6);</p><p>plot(f,m,w/pi,angle(h));</p><p>title('Bandpass filter phase response');</p><p>ylabel('phase in degree');</p><p>xlabel('Norm frequency radian/samples');</p><p>f = [0 0.4 0.4 0.6 0.6 1];</p><p>m = [1 1 0 0 1 1];</p><p>b1 = fir2(30,f,m);</p><p>[h,w] = freqz(b1,1);</p><p>subplot(4,2,7)</p><p>plot(f,m,w/pi,abs(h));</p><p>title('Bandstop filter magnitude response');</p><p>xlabel('Norm frequency radian/samples');</p><p>ylabel('mag in db');</p><p>subplot(4,2,8);</p><p>plot(f,m,w/pi,angle(h));</p><p>title('Bandstop filter phase response');</p><p>ylabel('phase in degree');</p><p>xlabel('Norm frequency radian/samples');</p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 08:06:03 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441500544</guid>
      </item>
      <item>
         <title>BUTTER</title>
         <author>khushi28061</author>
         <link>https://padlet.com/khushi28061/help/wish/3441501585</link>
         <description><![CDATA[<p>% Design of Digital IIR Filters using Butterworth and Chebyshev methods</p><p>pkg load signal;</p><p>% Sampling frequency in Hz</p><p>fs = 1000;</p><p>% Filter order</p><p>n = 4;</p><p>% Cutoff frequency in Hz</p><p>fc = 200;</p><p>% Normalized cutoff frequency</p><p>Wn = fc / (fs / 2);</p><p>% Butterworth filter design</p><p>[b_butter, a_butter] = butter(n, Wn);</p><p>% Frequency response of Butterworth filter</p><p>freqz(b_butter, a_butter);</p><p>title('Butterworth Lowpass Filter Response');</p><p>% Pause before next plot</p><p>pause;</p><p>% Chebyshev Type I filter design</p><p>rp = 1; % Passband ripple in dB</p><p>[b_cheby, a_cheby] = cheby1(n, rp, Wn);</p><p>% Frequency response of Chebyshev filter</p><p>freqz(b_cheby, a_cheby);</p><p>title('Chebyshev Type I Lowpass Filter Response');</p><p><br/></p>]]></description>
         <enclosure url="" />
         <pubDate>2025-05-08 08:07:01 UTC</pubDate>
         <guid>https://padlet.com/khushi28061/help/wish/3441501585</guid>
      </item>
   </channel>
</rss>
