回答済み
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...

15年弱 前 | 1

回答済み
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...

15年弱 前 | 2

| 採用済み

回答済み
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...

15年弱 前 | 0

回答済み
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...

15年弱 前 | 0

回答済み
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...

15年弱 前 | 0

| 採用済み

回答済み
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. ...

15年弱 前 | 0

| 採用済み

回答済み
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. ...

15年弱 前 | 0

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

15年弱 前 | 0

回答済み
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...

15年弱 前 | 0

| 採用済み

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

15年弱 前 | 4

| 採用済み

回答済み
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...

15年弱 前 | 0

| 採用済み

回答済み
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 ...

15年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 1

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

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

15年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 1

| 採用済み

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 1

| 採用済み

回答済み
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年弱 前 | 1

回答済み
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年弱 前 | 1

| 採用済み

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

15年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

| 採用済み

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

15年弱 前 | 0

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

回答済み
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年弱 前 | 0

さらに読み込む