Réponse apportée
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...

plus de 14 ans il y a | 1

Réponse apportée
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...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 14 ans il y a | 0

Réponse apportée
Polyphase filter
The idea of polyphase filter is to avoid unnecessary computations by performing the computation at the lowest data rate possible...

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

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

presque 15 ans il y a | 4

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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 ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Getting error of Double
Is your |dtmfdial| on path? You can also try rehash toolbox to regenerate the path. HTH

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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;...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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(...

presque 15 ans il y a | 1

Réponse apportée
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 ...

presque 15 ans il y a | 1

| A accepté

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

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
vectorize this operation - help
Hi Leor, You may be able to use |arrayfun| to do this. >> doc arrayfun HTH

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

Charger plus