Answered
Missing Statistics Toolbox
Hi Carl, Does rehash toolboxreset rehash toolboxcache help? Also, if you do ver Do you see Statistics To...

14 years ago | 0

Answered
downsample
There are several possibilities. You can use either |upfirdn| or design the filter using |fdesign.decimator| and then filter you...

14 years ago | 0

| accepted

Answered
mutiplying a role of number and seach or max and min value
You can use |kron| to do what you want. kron(a,b) doc kron As to finding out what |a| and |b| is, given the regular...

14 years ago | 0

Answered
matrix reshaping
You can try B = A.'; B = B(:).';

14 years ago | 0

Answered
Use a loop to load .dat files (with matrices) and manipulate them
If you use |dir|, it returns a struct. In your case, you should do load(D(i).name) instead. HTH

14 years ago | 0

Answered
function call
You can add it to your path. doc addpath

14 years ago | 0

Answered
how to do implement difference equation in matlab
You are on the right track in general, but there are two things I want to point out: # If your |x| is |2*n|, then |x(0)| is 0...

14 years ago | 0

Answered
how to do implement difference equation in matlab
I think your |b| is incorrect, it should be |[1 1]| instead. To accommodate for the initial value of |y| and |x|, you need to tr...

14 years ago | 2

Answered
Filter Question - FIR and IRR
The approach looks fine. I assume your sampling frequency is 140 kHz? If that's the case, I think you are just missing an |r_s| ...

14 years ago | 0

Answered
Need help for cross checking of eigen Vector
The eigenvectors are not unique, they can differ by a scale. Based on MATLAB's answer, your eigenvector for the eigenvalue of 5 ...

14 years ago | 1

Answered
Plot axis limits
You can give following command a try axis tight If you want more control, you can use |axis| command to control the limits ...

14 years ago | 0

Answered
Please help me understand my homework
It seems that you never compute your |H(k)|. So once |k>1|, there is no value for |H(k)|.

14 years ago | 0

Answered
Pole Zero Plot of Transfer Fucntion H(z)
You can use |zplane|, you can specify either the zero/pole directly or the coefficients. For example, using your equation, you c...

14 years ago | 0

Answered
read two different tracks in matlab
I assume this is similar to a stereo signal. If that's the case, then you can still use |wavread| to read in the file. [y,...

14 years ago | 0

Answered
signals denoising
Hi Amani, You can try to look at the following demo and doc if you have Wavelet Toolbox doc wden http://www.mathworks...

14 years ago | 1

| accepted

Answered
Signal Processing - Cross-Correlation to obtain Lag times - further question related to previous answer
Hi Trudy, The answer below should be helpful. http://www.mathworks.com/matlabcentral/answers/19599-time-delay-between-two-...

14 years ago | 0

| accepted

Answered
help on if statement
You can vectorize this in one command: idx = 1:31; find( (X4(idx,1)>X4(idx,2))&(X4(idx,2)>X4(idx,3))&(X4(idx,3)>X4(idx,4)...

14 years ago | 1

| accepted

Answered
plot
There are several things you can do, the simplest is probably plot(t,xt(1:length(t)),t,yt(1:length(t))) This assumes that yo...

14 years ago | 0

Answered
How to see freq response of a wave file
Let's say you have a wav file called foo.wav, you can use spectrum object to see its spectrum [y,fs] = wavread('foo.wav'); ...

14 years ago | 0

Answered
how to do wavwrite on this mat file
To write a wave file, you need at least the signal and the sampling frequency. From you example, it seems you can just do w...

14 years ago | 0

Answered
2nd interpolation of irregular data
Hi Scott, You can use |TriScatteredInterp| to do this. doc TriScatteredInterp HTH

14 years ago | 0

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

Load more