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

más de 14 años hace | 1

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

más de 14 años hace | 2

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 4

| aceptada

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 1

| aceptada

Respondida
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

casi 15 años hace | 0

| aceptada

Respondida
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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 1

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

casi 15 años hace | 1

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

| aceptada

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

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

casi 15 años hace | 0

Cargar más