DSPRelated.com

approximation of numbers

Started by sadek in Matlab DSP14 years ago 3 replies

How we turn for example 2.0000000000003 into 2 only?

How we turn for example 2.0000000000003 into 2 only?


shifting frequency of an audiofile using matlab

Started by mani...@gmail.com in Matlab DSP14 years ago 2 replies

Hi all, As part of a project, I need different sound samples with different frequencies and amplitudes in them but with all samples...

Hi all, As part of a project, I need different sound samples with different frequencies and amplitudes in them but with all samples obtained by doing signal processing on one basic .wav file. I am trying first to shift a signal with one frequency say 4kHz by a small amount of say 100Hz using Matlab. I multiplied the signal by cos(2*pi*100*t) and took fft. I see two peaks about 4kHz...


Feature Extraction for classification

Started by Michael Bezenchuk in Matlab DSP14 years ago

I'm doing a project dealing with classification I have database of 4 classes each class have number of samles you can see the database here...

I'm doing a project dealing with classification I have database of 4 classes each class have number of samles you can see the database here (matlab files - smps parameter): http://www.ee.bgu.ac.il/~bezenchu/detectionDB/ I've been asked to identify the features visually and then to estimate the distribution for each class. also it says that i c


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...


How to calculate Relative Power

Started by abdulhaseeb86 in Matlab DSP14 years ago

I want to calculate relative power of two signals what is the correct matlab code to do that. Actually one signal is the filtered version of the...

I want to calculate relative power of two signals what is the correct matlab code to do that. Actually one signal is the filtered version of the other, because i want to find the power contained in the specific band of frequencies. The code I am trying to use is this: x = wavread('sc4012_subj1_Pz-Oz.wav'); %Filter Specs n=10; Wn=[8 12]/50; [b,a] = butter(n,Wn,'bandpass'); x_fil = filt...


Re: Lowpass filter design [2 Attachments]

Started by aziz yemen in Matlab DSP14 years ago 2 replies

HERE IS THE CODE WITH SAMPLE FILE  ANC COMPARING BETWEEN THE FILTERED AND  NOISY SIGNAL  YOU CAN REMOVE WHATEVER IS NOT NECESSARY...

HERE IS THE CODE WITH SAMPLE FILE  ANC COMPARING BETWEEN THE FILTERED AND  NOISY SIGNAL  YOU CAN REMOVE WHATEVER IS NOT NECESSARY   [Yo,FS,NBITS1]=WAVREAD('1o.wav'); % read original signal [Yn,FS,NBITS2]=WAVREAD('1n.wav'); % read corrupted signal n1 =length(Yo);%Obtain the length of the original signal n2 =length(Yn);%Obtain the length of the corrupted signal % Time Domain Plot f...


inverse transfer function

Started by chri...@web.de in Matlab DSP14 years ago

Hello, i am writing my thesis. I have got a problem regarding the inverse modelling. I estimated the following transfer function: ...

Hello, i am writing my thesis. I have got a problem regarding the inverse modelling. I estimated the following transfer function: B(z^-1) b_1*z^-1 + b_2*z^-2 + ... + b_m*z^-m G(z^-1) = -------- = ------------------------------------------ * z^-d A(z^-1) 1 + a_1*z^-1 + a_2*z^-2 + ... + a_m*z^-m as you can see, there is no b_0. This function is stable and all ...


Re: matlab code required for ofdm

Started by munt...@yahoo.com in Matlab DSP14 years ago

hi friend check out this code: clc; clear all; close all; %% specification of data parameters % fft...

hi friend check out this code: clc; clear all; close all; %% specification of data parameters % fft length fftlength=256; %Modulation order M M=16; % data generation; mydata=randint(1000,1,2); %% Modulation (mapping bits to symbols) each symbol = 4 bits modulatedData=modulate(modem.pskmod('M',16,'SymbolOrder','binary','InputType','bit'),mydata); %% zero pading paddedData...


Re: Mat to Excel

Started by aqou...@gmail.com in Matlab DSP14 years ago 1 reply

you can do this: 1. copy your data from .mat file 2. paste all of them into a notepad 3. then copy everything on the notepad into the excel...

you can do this: 1. copy your data from .mat file 2. paste all of them into a notepad 3. then copy everything on the notepad into the excel file make sure you have set your computer setting (in "Regional and LAnguage Options" in the "control panel"), so that the decimal is (.) and number grouping is (,) thanks > > > > > HI, > ??? I am trying to copy a mat file i...


Using/Bringing time-variant parameters in/to Simulink

Started by pohjoranta in Matlab DSP14 years ago

Dear all, I've been working with Simulink for quite a while already, but now encountered a seemingly simple and common kind of problem, which...

Dear all, I've been working with Simulink for quite a while already, but now encountered a seemingly simple and common kind of problem, which I still can't seem to find a general solution for. That is, how do you utilize the not-the-very-elementary Simulink blocks for creating time-variant systems? For example, say you want to simulate the output of a 2nd order linear system by using the ...


Ask a Question to the DSPRelated community

To significantly increase your chances of receiving answers, please make sure to:

  1. Use a meaningful title
  2. Express your question clearly and well
  3. Do not use this forum to promote your product, service or business
  4. Write in clear, grammatical, correctly-spelled language
  5. Do not post content that violates a copyright