Answered
wavread
y is the digital samples of the music/voice and fs is the sampling frequency. In order to properly play back the music, you must...

14 years ago | 1

Answered
xcorr
C is the answer you get by dong the correlation and lags is the corresponding and what xcorr(A,B) does is really moving A around...

14 years ago | 2

| accepted

Answered
How to separate rows from an array
Here is a simple example: >> x = rand(3,3) x = 0.9055 0.6581 0.2495 0.2045 0.1836 0.37...

14 years ago | 0

Answered
interp3 problem
For interp3 to work, the data must be in a grid. However, from the data you show, it seems that they are not really sampled in a...

14 years ago | 0

Answered
Need to generate bandpass filtered white-noise
You will need to determine the spec of your filter and then create the filter. It looks like you are dealing with audios so I'll...

14 years ago | 0

| accepted

Answered
time delay between two signals from the same source
You can use |xcorr| to determine the delay in samples and then use sampling frequency to find out the exact delay in time. ...

14 years ago | 0

| accepted

Answered
Polyphase filter
The output is determined by both input and the filter coefficients, so we don't have control for that, if it is a 0, it is a 0. ...

14 years ago | 0

Answered
Polyphase filter
The idea of polyphase filter is to avoid unnecessary computations by performing the computation at the lowest data rate possible...

14 years ago | 0

Answered
playing an under-sampled .wav music in matlab
You can use |wavread| to read in your wave file and then use |audioplayer| to play it. Or if you have the downsampled music alre...

14 years ago | 0

| accepted

Answered
PWELCH vs PSD
Hi Kevin, The result of |psd| is not correctly scaled, therefore you should use |pwelch|. For spectral density, the result shou...

14 years ago | 4

| accepted

Answered
How to change the axis properties of a graph?
Hi, You can do set(gca) to see all properties of an axis. To modify either one of them, you can do set(gca,'Nam...

14 years ago | 0

| accepted

Answered
Pole Zero plot is giving wrong plot
If you look at the ticks of the real axes, you can see that the scale is 10e-16. So practically it is on the imaginary axis. If ...

14 years ago | 0

Answered
Detect New File in a Directory
Hi lynniz, You can use |dir| to list all the files under a certain directory, cache it and constantly query the folder and us...

15 years ago | 0

| accepted

Answered
ifft
Let's assume that the signal is x. So what you could do is Xf = fft(x); Xf_mag = abs(Xf); Xf_phase = angle(Xf); % do wh...

15 years ago | 1

| accepted

Answered
Stuck with DTMF code
You can pass in an array like function dtmfdial(x,fs) and then inside your function, use a |for| loop to work on each ...

15 years ago | 0

| accepted

Answered
Getting error of Double
Is your |dtmfdial| on path? You can also try rehash toolbox to regenerate the path. HTH

15 years ago | 0

Answered
Store Values from a Power Spectrum graph to an array
Hi RMIT, let's say you have the frequency in |f| and the corresponding spectrum in |P|. Then you should be able to do what yo...

15 years ago | 0

| accepted

Answered
Lines that would be executed even if an error occur or if the script is aborted
Hi Camil, You can use |try..catch|. For example try foo() catch fclose(vu); delete(vu); clear vu;...

15 years ago | 1

| accepted

Answered
plus-minus function surf graph
Hi Sean, If you just want to plot, you should do figure; surf(X,Y,Z); hold on; surf(X,-Y,Z); HTH

15 years ago | 0

| accepted

Answered
plus-minus function
Hi Sean, You can do something like Y=B/2*(1-(4*X.^2)/L^2)*(1-Z.^2/D^2); Y = [Y -Y]; HTH

15 years ago | 1

| accepted

Answered
Centering a histogram around the median
Hi Amina, You can specify the bin location in |hist| function, for example x = rand(1024,1); sigmax = std(x); mx = mean(...

15 years ago | 1

Answered
Sum of matrices obtained as sum of vector products
Hi Ana, Let's say your matrix is X. If I understand correctly, each row of X is a vector you want and that vector suppose to ...

15 years ago | 1

| accepted

Answered
Matlab matched filtering help
Hi vsee Here is an earlier post regarding matched filter http://www.mathworks.com/matlabcentral/answers/4502-matched-filte...

15 years ago | 0

Answered
How to create a test bench waveform for the working of band pass and low pass filter
Hi Vivek, What is the purpose of the test bench? If you purpose is to look at the filter response, then in my opinion it is bet...

15 years ago | 0

| accepted

Answered
What are the steps for making a 'fft filter'?
Hi Kay, You need to first design the filter to get coefficient |b| and then pass it into the |fftfilt|. For example, assume you...

15 years ago | 0

Answered
How to design a filter with a given transfer function
Hi Evgeni, I guess I misunderstood your question. If you already know your zeros and poles, then you already have the coefficie...

15 years ago | 0

| accepted

Answered
vectorize this operation - help
Hi Leor, You may be able to use |arrayfun| to do this. >> doc arrayfun HTH

15 years ago | 0

Answered
How to design a filter with a given transfer function
Hi Evgeni, First of all, you will need to describe your response based on your frequency resposne curve. It looks like you kn...

15 years ago | 0

Answered
Paramerer setting for pmtm() multitaper method
Hi Kyle, The time-bandwidth product, |nw|, gives you a trade-off of the variance and resolution. When it gets larger, more wi...

15 years ago | 0

Answered
rempet
An alternative approach is to use left-multiply to achieve row manipulation. In your case, if you want to move your first row to...

15 years ago | 0

Load more