Answered
altering a 2d plot for a time series
I think you should use the Xlim and Ylim values of the current axis to place your arror x = randn(100,1); plot(x); ...

14 years ago | 0

Answered
difference between FFT(X) and FFT(X,N)
Are you sure you need to use a power of two for efficiency? At any rate you can get rid of the padding in time domain. And altho...

14 years ago | 0

Answered
altering a 2d plot for a time series
You can certainly add an arrow using text() plot(randn(100,1)); set(gca,'xtick',[]); text(46,-3.5,'\rightarrow','font...

14 years ago | 0

Answered
scaling for periodic signal using hann window
Hi Lisa, it should be the same: t = 0:0.001:1-0.001; xn = cos(2*pi*100*t); w = hanning(length(xn)); x = xn'.*w; ...

14 years ago | 0

| accepted

Answered
Input a matrix
You want the user to a sequence of numbers that you then shape into a matrix? If you want to use input(), you can use input i...

14 years ago | 0

| accepted

Answered
.MAT to .DAT
Does the .mat file have only numeric data? You can use dlmwrite with the 'delimiter','\t' option to tab delimit the data. See...

14 years ago | 0

Answered
why the result of cross-correlation coefficient is 1?
Hi Bin, the Cyclist is absolutely right. There is no difference between the two because all you have done is invert the wavelet ...

14 years ago | 0

| accepted

Answered
add noise
You can use randn() t = 0:0.001:1; x = cos(2*pi*100*t); y = x+randn(size(t)); Of course that assumes you want N(0,...

14 years ago | 0

| accepted

Answered
Put result in vector
I don't believe you need to do the above with a for loop, just create a t vector and work with arrays, for example: t = 0...

14 years ago | 0

Answered
Averaging data
One of many ways: If the spacing between elements in your d vector is 1 msec, then you can reshape the data vector into a mat...

14 years ago | 1

| accepted

Answered
how to acces the points on the fft plot.
Hi, If the signal is real-valued, it is better to not use the whole result of fft() since you are looking at the absolute value....

14 years ago | 0

| accepted

Answered
mfcc from wav file
Hi, You can use the mfcc() routine from this free toolbox <https://engineering.purdue.edu/~malcolm/interval/1998-010/> Tha...

14 years ago | 0

| accepted

Answered
Differences between fft, psd, pwelch etc..
fft(Y) will give you a complex-valued output, which is the discrete Fourier transform of Y. pwelch(Y, ...., 'twosided') is gi...

14 years ago | 5

Answered
displaying co-efficient
That is because w is a cell array of cell arrays. For example: x = rand(16); J = 1; [Faf, Fsf] = FSfar...

14 years ago | 0

| accepted

Answered
Finding the auto-correlation of the noise signal x explicitly using the FFT() and IFFT() functions
Hi, here is an example: x = randn(16,1); xpsdmag = abs(fft(x,2^nextpow2(2*length(x)-1))).^2; acf = ifft(...

14 years ago | 0

| accepted

Answered
yule walker Psd of .Wav file
You want to just input one column vector and not the matrix b1 = b1(:,1); [Pxx fs] = pyulear(b1,4);

14 years ago | 0

| accepted

Answered
yule walker Psd of .Wav file
What is the length of b1? is it only three samples in length? or empty? You have the model order of 4 but apparently your inp...

14 years ago | 0

Answered
prediction by wavelet and ARMA
Hi Marina, I think you probably want to do this on the output of wrcoef() and not the actual wavelet and scaling coefficients. S...

14 years ago | 0

Answered
FFT in ISM Band
You are mistaking FFT length with frequency resolution. Frequency resolution in the DFT defined as the spacing between adjacent ...

14 years ago | 0

Answered
Bandpass filter
Hi Magda, We need to know your sampling frequency to give some exact code, but I'll give you a general example and assume a samp...

14 years ago | 1

| accepted

Answered
FFT in ISM Band
Hi, I think you will need over 200,000 samples depending on the sampling frequency, but that is not a long duration signal at th...

14 years ago | 0

Answered
symbolic toolbox
Hi Henny, you can get all MathWorks products from MathWorks: <http://www.mathworks.com/> However, I do not believe you are...

14 years ago | 0

Answered
export data from Matlab to PDF or HTML
Do you happen to have <http://www.mathworks.com/products/ML_reportgenerator/>

14 years ago | 0

Answered
Frequency axis on a scalogram
Hi Katrine, I think the thing to do is call wscalogram() with an empty string for the plot type and just get the scalogram outpu...

14 years ago | 0

| accepted

Answered
4-D
Hi Pan, This is the same exact question: <http://www.mathworks.com/matlabcentral/answers/31103-explain-4-d-unit8>

14 years ago | 0

Answered
access this is a probme
I'm not sure I understand, you can access it just as you have said. bub(2,:) returns all the elements of the 2nd row of ...

14 years ago | 0

| accepted

Answered
convert 16 bit image to 8 bit image
You can use uint8() to cast the image into unsigned 8-bit integers. Or int8() for signed 8-bit integers. X = uint8(ones(1...

14 years ago | 0

Answered
Undefined variable "som" or function "som.wave". in [y, fs, nbits, opts]=wavread(som.wav) function
You should input it as a string variable. [y, fs, nbits, opts]=wavread('som.wav') And make sure the folder where som.wav...

14 years ago | 0

| accepted

Answered
why after bandpass, phase information lost?
Hi Haoran, that is expected. You can use filtfilt() instead of filter() if keeping peak locations in the time domain is importan...

14 years ago | 0

| accepted

Answered
error-undefined function 'eq'
You can't use this kind of comparison on structure arrays. It sounds like you can use ismember() but you have to make the com...

14 years ago | 0

| accepted

Load more