DSPRelated.com

IIR filter design

Started by megha daga in Matlab DSP18 years ago 1 reply

Hi everyone I am new to matlab and I am working on designing of a cascaded IIR filter (biquads with 5 coeff each) design. My sampling rate is...

Hi everyone I am new to matlab and I am working on designing of a cascaded IIR filter (biquads with 5 coeff each) design. My sampling rate is 48KHz, cut off is 6KHz. I am currently using fdatool. But I am not sure about its stability. I also tried using the commands butter and then tf2sos. Some one kindly suggest how stable these filters can be? Which is a better method. Kindly provide your sug...


fft problem

Started by maria_mount in Matlab DSP21 years ago 4 replies

Hi, i generate 2 signals in matlab and when i see there spectrum ,the closely space signals mixed up here what i have done Fs...

Hi, i generate 2 signals in matlab and when i see there spectrum ,the closely space signals mixed up here what i have done Fs = 400 ; % sampling rate Nres = 0.1 ; %spectral resolution of fft Nfft = fs/Nres ; % number of points in fft i.e 4000 t = (1:64)/fs ; %lengt


help

Started by vijaya_creative in Matlab DSP20 years ago 2 replies

hii can ny 1 gimme the coding of this following simple program in MATLAB.......... write a MATLAB program to generate unit...

hii can ny 1 gimme the coding of this following simple program in MATLAB.......... write a MATLAB program to generate unit step sequence and a ramp sequence nu[n] which asks the user to enter the desired length of the sequence L and also the sampling frequency F in hertz


Waveform generation

Started by eko suhendro in Matlab DSP15 years ago

hi guys I'm very new to Matlab and DSP and am in a bit a nitch. I need to generate waveforms with sampling rate 256 samples per cycle,...

hi guys I'm very new to Matlab and DSP and am in a bit a nitch. I need to generate waveforms with sampling rate 256 samples per cycle, frequency 50 Hz and duration five cycles. 1. for normal signal x(t)=Asin wt, A=1 2. Voltage sag signal x(t)=A(1-alpha(u(t-t1)-u(t-t2)))sinwt where t1 =0, u(t)=0, t


clearing the serial inputbuffer

Started by ashefi in Matlab DSP19 years ago

hi all! i have a little problem with async communication. i am connecting a sampling device into com1 and reading it. after 17 or 18...

hi all! i have a little problem with async communication. i am connecting a sampling device into com1 and reading it. after 17 or 18 reading cycles the input buffer have more samples than i asked for. in the first 16/17 cycles it gives good results. if i do (s=serial('com1')): fclose(s); fopen(s); it solves the problem, but


Help..Sampling continuous time signals

Started by rockcorockman in Matlab DSP20 years ago 1 reply

we have the following signals x2 = sin(18*t + 180) 9 hz x3 = sin(22*t) 11 hz How do you sample each signal at a freq of...

we have the following signals x2 = sin(18*t + 180) 9 hz x3 = sin(22*t) 11 hz How do you sample each signal at a freq of 1 hz and plot the result on top original signal plot? Any ideas would be appreciated!! Thanks in advance!


Tracking certain frequencies over time

Started by a.so...@gmail.com in Matlab DSP16 years ago 2 replies

Hi everybody, Thank you for sharing valuable information in this forum Here is my problem. I am continuously collecting vibration data from a...

Hi everybody, Thank you for sharing valuable information in this forum Here is my problem. I am continuously collecting vibration data from a set of bearings on a spindle. I am interested in tracking certain bearing related frequencies such as outer race ball pass frequency (BFPO), etc, in order to determine the state of the bearings (healthy operation, worn out, ...) My sampling rate is s...


I need more information about the resample command

Started by sys7...@yahoo.com in Matlab DSP16 years ago

Can anyone direct me to a good reference on learning how Matlab processes data via either the "resample" command or the "interp" command in the...

Can anyone direct me to a good reference on learning how Matlab processes data via either the "resample" command or the "interp" command in the Signal Processign Toolbox? I need to understand what the other parameters in resample do. Context: I am building a simulated WiMAX signal that can be played out of an arbitrary wavefom generator. I have to make a sampling rate up-conversion to allow ...


image rectification help

Started by tizianapace in Matlab DSP20 years ago

Hi all I am in urgent need of matlab code to perform image rectification (for computer vision). If you know of some sources...

Hi all I am in urgent need of matlab code to perform image rectification (for computer vision). If you know of some sources where I can get some code or if you want to exchange with me some code (I have developed image processing code including fft transforms, image sampling an


MATLAB DTMF decoding

Started by shan...@gmail.com in Matlab DSP19 years ago

I have a .mat file which contains a matrix d which has 10 rows and 2048 columns; first 1024 samples of each row corresponds to one digit and...

I have a .mat file which contains a matrix d which has 10 rows and 2048 columns; first 1024 samples of each row corresponds to one digit and the next 1024 samples are just zeros corresponding to the silence between the digits. We need these zeros when we wish to hear the click sound of the digit followed by silence. and the sampling freq Fs=2^13=8192 I've figured out how t


How to implement the timeline with a L band signal

Started by roge...@gmail.com in Matlab DSP16 years ago 1 reply

Hi to everyone, I need to plot the PSD of a L band signal and I don't know how to define the timeline without having this error: "Maximum...

Hi to everyone, I need to plot the PSD of a L band signal and I don't know how to define the timeline without having this error: "Maximum variable size allowed by the program is exceeded". The point is that I have problems with memory due to the high frequency I'm using. If the carrier is 1.3 GHz, the sampling frequency must be 3 or 4 times higher and matlab runs out of space and, therefore,...


How to calculate FIR filter coefficients?

Started by talh...@yahoo.com in Matlab DSP13 years ago 1 reply

hi, I am trying to implement digital FIR filter in my DSP kit. I don't know how to calculate the FIR coefficients. I know the order, sampling...

hi, I am trying to implement digital FIR filter in my DSP kit. I don't know how to calculate the FIR coefficients. I know the order, sampling frequency and my signal bandwidth. I want to design Multi band pass filter. Can anyone help me in this regard and may be e mail me the procedure. It would be very much grateful. My id is (t...@yahoo.com) Thanks.


Variable cut-off frequency LPF with high oversampling

Started by whee...@yahoo.com in Matlab DSP11 years ago

Hello all, I'm using a Xilinx Kintex-7 FPGA to do some low-pass filtering using System Generator/Simulink, and had a question about the...

Hello all, I'm using a Xilinx Kintex-7 FPGA to do some low-pass filtering using System Generator/Simulink, and had a question about the architecture of the filter. My requirements include having to use a fixed sampling rate of 80MSPS. This can't really change. I appreciate the difference b/w sample rate of the filter and the clock rate of the DSP primitives in the FPGA. The customer wants...


NRZ

Started by saleh alawsh in Matlab DSP15 years ago

I have to generate NRZ I tried this cod but there are some errors. Any one can help me % Initialize system parameters Fs = 10000; ...

I have to generate NRZ I tried this cod but there are some errors. Any one can help me % Initialize system parameters Fs = 10000; % Sampling frequency (Hz) Rs = 100; % Symbol rate (Sps) nSamps = Fs/Rs; % Number of samples per symbol Trise = 1/(5*Rs); % Rise time of the NRZ signal Tfall = 1/(5*Rs); % Fall time of the NRZ signal frameLen = 5000;...


matlab and adding step functions

Started by Aaron Friedman in Matlab DSP16 years ago

I'm new to Matlab, and I would like to know how to add step functions. I came up with a function y = u(t)where y(y> =0)=1 and y(y

I'm new to Matlab, and I would like to know how to add step functions. I came up with a function y = u(t)where y(y> =0)=1 and y(y


wavelet transform

Started by Josh Morgan in Matlab DSP16 years ago

Hi, I have a few problems, looking for there solutions: How to set filter type, length, order?and sampling rate using DWT command? I mean how...

Hi, I have a few problems, looking for there solutions: How to set filter type, length, order?and sampling rate using DWT command? I mean how all parametrs that we set in fdatool, can be adjusted in dwt comman. secondly, how wavelet (haar type) transform of a 1 sec audio clip can be computed in simulink. I mean which block is required. regards Morgan J.


Sampling frequency offset correction & estimation Speth et al.

Started by bobo...@gmx.de in Matlab DSP14 years ago

Hello everyone, I'm having troubles with SFO estimation and its correction on Speth algorithm, since I don't get correct estimated values...

Hello everyone, I'm having troubles with SFO estimation and its correction on Speth algorithm, since I don't get correct estimated values neither in AWGN nor in ideal case. Basically, I add SFO to OFDM signal through interpolation in time domain. Then trying to estimate with following code: temp_pilots_rx=[pos_pilot_symbols_rx_neg; 0; pos_pilot_symbols_rx_pos;]; % separate negative & positi...


problem in 8psk demodulation-decision region

Started by raval kunal in Matlab DSP22 years ago 1 reply

Hi everyone, I am trying to simulate 8PSK modulation-demodulation scheme in matlab. The problem arises in the decision making...

Hi everyone, I am trying to simulate 8PSK modulation-demodulation scheme in matlab. The problem arises in the decision making after matched filtering and re-sampling. I am comparing the angles of received signal and taking decision accordingly as shown in the code below


FFT PLOT

Started by smruts14 in Matlab DSP21 years ago 1 reply

hi, i want to get fft and plot it when i know the sampling frequency fs, frame duration, no. of samples per frame.I also want to...

hi, i want to get fft and plot it when i know the sampling frequency fs, frame duration, no. of samples per frame.I also want to know the code to plot normal audio signal in time domain and frequency domain w/o using dsp blockset smruts


Re: FFT Frequency plot

Started by hide...@yahoo.com in Matlab DSP16 years ago

maybe you can try this one. this is M-file ONLY to show how to develop sinusoidal signal with some modulation & show it in frequency domain....

maybe you can try this one. this is M-file ONLY to show how to develop sinusoidal signal with some modulation & show it in frequency domain. hope this will help you Nf = 800; %choose number of frequency data fs = 256; %choose sampling frequency Nt = Nf*2.56; %compute number of time dom. data T = 0:(1/f...