Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

spectrum analysis code in MaTLaB(urgently required)

Status
Not open for further replies.
codes for spectrum of signal matlab

i dun knoe y u people are not responding me ??
but i need it .......
i have already told u the ammendments which are required ....
i will be veryy thankful to u if u will give me such a code who's having these changes.....
i hope so that i would be the last time ....
 

spectrum matlab coding fm

You need to start figuring this stuff out on your own. Asking random people on the internet to do your work for you doesn't help you much in the long run. From your message on 18 June, you seem to know what you need to do, break it down into simple steps and get it working.

Dave
 

nfft+showfft+ matlab

Mr Dave i have tried to do all that by myself.....but it ain't working .......
if u will guide me i will b veryy thankfull to u !!!!
i have told u whole situation in PM
i hope so that it will be the last tym ....
coz i m unable to do all that ....
i m getting the solution thats y i m saying to u !!!!!
daily i search n try to do it but....
nyvz if u will ..........
i will be very thankful to u ppl
tkz
 

spectrogram code in matlab

i have got some other codes regarding this.....
but i m having a problem in all of that codes that is improper use of wavread function...
otherwise my program is fit
i have the code but dun have idea how to get signal from wavread function...
infact i have tried but its giving an error....
check this y its not working...
%Code to add gaussian noise to a signal and then plot the original
%signal in the time domain, the shifted FFT of the original signal in
%the frequency domain %and the shifted FFT of the original signal with
%gaussian noise added to it in the frequency domain.
[y, fs, nbits] = wavread('a18.wav'); %read in the wav file
t = 0:1/fs:length(y)/fs-1/fs; %generate the correct time vector
subplot(311) %set up a subplot
plot(t,y) %plot the signal in the time domain
%%%%%code provided by Dr. Qi to generate gaussian noise%%%%%
sigma = 0.02;
mu = 0;
n = randn(size(y))*sigma + mu*ones(size(y));
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
signal=n+y; %add the gaussian noise to the original signal
yfft=fft(y); %take the FFT of the original signal.
xfft=fft(signal); %take the FFT of the signal with noise added
f = -length(y)/2:length(y)/2-1; %generate the appropriate frequency
%scale.
ysfft=fftshift(yfft); %calculate the shifted FFT of the original
%signal
xsfft=fftshift(xfft); %same as above but for the signal with noise
%added
subplot(312)
%plot the shifted FFT of the original signal in the frequency domain
plot(f,abs(ysfft));
subplot(313)
%plot the shifted FFT of the original signal with noise added in the
%frequency domain
plot(f,abs(xsfft));






and please tell me y its not working ???
 

matlab codes for spectral estimation

Thank you for asking a clear specific question!

Your code runs fine here. It displays three subplots: the waveform and two identical spectrum plots. I don't have your a18.wav, so I substituted a small wav file from my Windows folder. Maybe your a18.wav is corrupt or unsupported format. If you can uploaded it somewhere, we may be able to see what's wrong with it.

I haven't examined the signal processing code.
 

spectrum code matlab

i have run that code now its working thxxxx
echo 47
just tell me that is it a code of spectrum analysis ....
its output having three plots...
one is of spectrum and the other two's are of noise
am i ryt ??
just tell me this otherwise my program is running successfully.....!!!
 

audio spectrum analyzer matlab

The three plots are:
1. The time-domain waveform of the signal. The horizontal axis is seconds.
2. The frequency-domain spectrum of the signal. The horizontal axis is hertz.
3. The frequency-domain spectrum of the signal with some noise added. The horizontal axis is hertz.

I suppose that any time you convert data from the time-domain to the frequency-domain, and examine the results, you are doing spectrum analysis.

In case you haven't heard those terms before:
https://en.wikipedia.org/wiki/Time-domain
https://en.wikipedia.org/wiki/Frequency-domain
 

matlab spectrogram audio

thxxxxx Mr echo...
i have read that documents....they helped me ....thank u once agaian......
but i want to knoe that its a right output to show spectrum of any wav file signal...
its is the right one which is called as spectrum analysis ....
plzzzz rply me soon coz tomorrow i have a presentation .....
 

view wave realtime matlab

hi dear
i know how to record the voice
use the " wavrecord " command
the question how to apply this is to see this command in MATLAB help
then take the

fft(abs(recordedvoice))
after this use " plot " command to plot the output

i hope some home work in this way will help u do tell me also the out put
with best wishes in ur problem
 

make spectrogram matlab

Hi munaim, I think you should discuss your question with a close friend who understands the goals of your presentation. It seems unwise presenting technical info that you don't fully understand.

I just now noticed a mistake in my previous message. The frequency-domain horizontal axis units are *not* hertz, unless the wav file is one second long. Instead, they are simply index values of the FFT output array. Sorry for the wrong info.

To change the horizontal axis to hertz, you could change this line:
f = -length(y)/2:length(y)/2-1; %generate the appropriate frequency
to this:
f = ((0:length(y)-1) - floor(length(y)/2)) * fs/length(y); %generate the appropriate frequency
Be sure to test it with your wav files.
 

Re: power spectrum analysis in matlab

hey what were ur project can u plzz send me its report so i can use it as my minor project plzzz





i can either use any input signal from wavread this is what from where i have to take my input signal ........no any connectivity of mic or anything else......simply i have to show output of that signal taken from wavread.......... so tell me the way how i have to do this ........ and output must b in visible form after running this code ........
i will be thankful to u !!!!
and program which artsil23 sent me in april ........
if u make it correct den i will also be thankful to u !!!
u can check by urself by running dat code ......
nyvz simply tell me what changes i have to do in 11 june program that it will not give me same error which i have told u by giving input signal from wavread.....
so paste the whole code .......
i will be very thankful to u !!!![/i][/quote]
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top