DSPRelated.com

Color grade plotting in Matlab

Started by trungk46da in Matlab DSP15 years ago

Hi all, I have a question for people who are familiar with electrical sampling oscilloscope (and Matlab). I have a vector in Matlab that...

Hi all, I have a question for people who are familiar with electrical sampling oscilloscope (and Matlab). I have a vector in Matlab that represents an electrical signal, but don't know how to plot them with 'color grade' mode like experimental traces. And for the one who has never used a ESO but is a matlab expert, the 'Color grade' mode means that the point color (for instance, points issued...


FIR design Window method -Convolution

Started by claudiocamera in Matlab DSP19 years ago

I came across the following problem in FIR design using window and convolution techniques . Project a FIR filter using a Hamming...

I came across the following problem in FIR design using window and convolution techniques . Project a FIR filter using a Hamming window to achieve the following specifications: Passband 0,3-3,4 kHz Stopband 0-0,2 e 4-8 kHz Stopband atenuation > 25 dB Sampling frequency 32 kHz Since the transition band is different


how to design LPF given i/p signal its sampling freq, reqiured o/p, in MATLAB

Started by "T.E Ravi" in Matlab DSP15 years ago 3 replies

Hai everyone, I have an i/p signal x = 1 +0.5* sin(pi*t) where t = [0:0.01:5], basically a signal sampled at 100 Hz. I need to filter out the...

Hai everyone, I have an i/p signal x = 1 +0.5* sin(pi*t) where t = [0:0.01:5], basically a signal sampled at 100 Hz. I need to filter out the d.c. component i.e. get 1 as a constant output so for which I have to design a low pass filter.   can any one tel me how to design low pass filter in MATLAB   Thank you


Basic SNR question

Started by usu_vlsi in Matlab DSP16 years ago 1 reply

Hi, I am kind of new to Signal Processing. I have two questions 1. I have a signal source, a in the lab, for eg. a 20kHz sine...

Hi, I am kind of new to Signal Processing. I have two questions 1. I have a signal source, a in the lab, for eg. a 20kHz sine wave generator. I connect it to a spectrum analyzer. I can see the frequency spectrum of the signal. Can somebody explain to me how I can calculate the Signal to Noise ratio from the spectrum analyzer. I have no way of sampling the 20kHZ sine wave, the signal gene...


channel object of matlab

Started by arash private in Matlab DSP15 years ago 1 reply

dear all ? does any body use Channel Object of matlab for ofdm signal. like chan = rayleighchan(ts,fd,tau,pdb); ## this is my case Nfft =...

dear all ? does any body use Channel Object of matlab for ofdm signal. like chan = rayleighchan(ts,fd,tau,pdb); ## this is my case Nfft = 1024; BW = 10*1e6; % Factor of correction n=28/25; % sampeling factor .see ieee 802.16e part 8.4.2.3 % Derived Parameteres 8.4.2.4 ieee 80.16 2004 Fs = floor(n*BW/8000)*8000; % Sampling frequency deltaF = Fs / Nfft; % Subcarrier spacing. Tb = 1...


How to set SamplingRate of parallel port

Started by sameen_ullah in Matlab DSP20 years ago

Hi, I am trying to acquire data using parallel port in matlab. I am using EPP mode. But i can't set the sampling rate of the...

Hi, I am trying to acquire data using parallel port in matlab. I am using EPP mode. But i can't set the sampling rate of the parallel port. The data at the parallel port is comming at the rate of 10KBytes/sec. How can i set the parallel port to be in sync with the hardware.


How to use Matlab M-file to create Pulse Code Modulation??

Started by jos0887 in Matlab DSP16 years ago

Hi, I am newbie in using Matlab and I have some problem creating M-file that demonstrate the working of a Pulse code modulation with Analog...

Hi, I am newbie in using Matlab and I have some problem creating M-file that demonstrate the working of a Pulse code modulation with Analog Digital converter. This is the problem I am facing now. By assuming that you have a triangle signal with max voltage of 10 V, demonstrate the working of a ADC with 8 bit output and how to obtain the quantization error and the sampling rate you use ...


Multichannel Sampling - Filtering in Freq. Domain

Started by scott_t72 in Matlab DSP14 years ago

Hi, I am creating a Matlab model of a multichannel system where the input signal is sampled below the Nyquist rate in each channel, but is still...

Hi, I am creating a Matlab model of a multichannel system where the input signal is sampled below the Nyquist rate in each channel, but is still recoverable because each channel has a uniform phase offset. In this case there are M=3 channels that sample at half the Nyquist Rate (L=2). The channels have uniform phase offsets of [0 Tsamp/3 2*Tsamp/3]. When corrected and interleaved, the output sh...


need help to design a 2nd order digital low pass filter

Started by roksy smith in Matlab DSP19 years ago 1 reply

hey guys ... please anyone help me to design a 2nd order digital low pass filter. Its specifications are as below: passband: fpass<= 1.5khz ...

hey guys ... please anyone help me to design a 2nd order digital low pass filter. Its specifications are as below: passband: fpass<= 1.5khz stopabnd: fstop >= 3khz sampling frequency: fs = 10 khz from this i have to find pole-zero diaram ,sample response h(k),a block diagram implemation and freqency response... thanking you.. roksy


Fwd: Freqz function- plssssss help

Started by emilly in Matlab DSP18 years ago

u can use following function,which i write in this function fo is notch freq and fs is sampling freq fo < fs/2 function [b,a] =...

u can use following function,which i write in this function fo is notch freq and fs is sampling freq fo < fs/2 function [b,a] = notch(fo,fs) deg=fo/fs*360; c=[cosd(deg)+j*sind(deg) ,cosd(deg)-j*sind(deg)]; b=poly(c); a=zeros(1,length(b)); a(1) = 1; g=sum(b); b=b/g; a=a/g; end discreteworld &l


Decimation filter magnitude response.

Started by usu_...@yahoo.com in Matlab DSP14 years ago 2 replies

I designed a CIC decimation filter, and am trying to plot its frequency response. Given below are the specifications of the filter. Sampling...

I designed a CIC decimation filter, and am trying to plot its frequency response. Given below are the specifications of the filter. Sampling Freq fclk: 1.4MHz Decimation D: 100 Input bits: 3 Output bits: 24 Order: 3 Question: What is the proper way to plot the magnitude the freq response of the filter? I did the following: If I send in 102400 samples into the filter, I get 1...


BandPass FIR filter using Windowing

Started by mike...@comcast.net in Matlab DSP15 years ago 2 replies

I am working on a school project, and I need to create a Linear phase, causal, digital Bandpass FIR filter using windowing methods. with the...

I am working on a school project, and I need to create a Linear phase, causal, digital Bandpass FIR filter using windowing methods. with the following specifications. Sampling fs= 24khz Passband freq= p1= 2*pi*4000, and p2= 2*pi*8000 rad/sec stopband freq= st1=2*pi*3000 st2=2*pi*9000 rad/sec Minimum stopband attenuation = 40db having the lowest possible filter length. I fou...


Frequency response function (FRF) from input and output with different sampling frequency

Started by apad...@yahoo.co.uk in Matlab DSP16 years ago

Dear scholars, My present work centres on extraction of modal parameters from the plots of magnitude of frequency response response functions,...

Dear scholars, My present work centres on extraction of modal parameters from the plots of magnitude of frequency response response functions, FRFs, versus frequency. FRF is simply the ratio of the FFT of the response (output) to the FFT of the excitation (input). My questions can be summarised as follows: 1. The time histories of the response and excitation are 250Hz and 500Hz respectively....


Filtering Guassian noise with Matlab

Started by tu5752 in Matlab DSP18 years ago 5 replies

Hello all, I'm generating a 1 kHz square wave and adding Guassian noise to obtain a SNR of 0 dB (using Matlab6.5). The task is to design a...

Hello all, I'm generating a 1 kHz square wave and adding Guassian noise to obtain a SNR of 0 dB (using Matlab6.5). The task is to design a filter that will filter out as much noise as possible from the square wave plus noise signal. The sampling frequency is 100kHz. Noise signal: 100.0*randn(1, length(t)) Square wave: 100*square(2*pi*1000*t)


Min. sampling rate required to resolve 0.1ms delay using cross correlation techniques

Started by Anonymous in Matlab DSP19 years ago 1 reply

Hi all, I have a question for those who are familar with the 'cross correlation' function in Matlab. If I wanted to resolve a...

Hi all, I have a question for those who are familar with the 'cross correlation' function in Matlab. If I wanted to resolve a 0.1ms delay between two sampled audio signals using the cross correlation function in Matlab, and if I were to use 20kHz speech signals sampled at rate of say 50KHz (to


doubt reg adding randn function to a sinusoidal signal to get noisy time domain signal

Started by "T.E Ravi" in Matlab DSP15 years ago 2 replies

I saw a code in mathworks.com which analyses the freq components of noisy time domain signal by explicitly plotting power Vs freq fs=1000; ...

I saw a code in mathworks.com which analyses the freq components of noisy time domain signal by explicitly plotting power Vs freq fs=1000;     % sampling freq T=1/fs;       %sample time L=1000;      % signal length t=(0:L-1)/T;     %time vector x=0.7*sin(2*pi*50*t)+sin(2*pi*120*t);   % i/p signal i.e., two sinusoids were added Now , we have noisy time domain signal b...