Answered
imhist(P,10) , imhist(P,256) What are the differences among resulting histograms?
It's the same meaning as the "regular" histogram, hist(). The number of bins in any histogram governs how coarsely or finely ...

13 years ago | 1

Answered
I need to calculate time-evolving power spectral density using Matlab periodogram function
If you want to use Welch's method in a time-evolving manner, use buffer() to segment the signal with overlap and obtain Welch es...

13 years ago | 0

Answered
Randperm is not returning all numbers and is duplicating some
I don't see it repeating any elements. Y = zeros(24,15); for nn = 1:15 tmp = randperm(24); Y(:,n...

13 years ago | 0

| accepted

Answered
Converting between zero padded and non zero padded FFT
In this simple case, you have just decreased the separation between adjacent DFT bins by a factor of 2. y = [1 2 3 4 0 0 0 ...

13 years ago | 0

| accepted

Answered
squared fast Fourier transform of a moving boxcar filter
Just specify the boxcar filter as the window argument in spectrogram. t=0:0.001:2; x=chirp(t,0,1,150)...

13 years ago | 0

Answered
How i can select 206 rows randomly from excel file in matlab ?
Do you have to select them randomly directly from Excel? That is not a big data set so you can just read the data into MATLAB us...

13 years ago | 0

| accepted

Answered
i got an error when i run this code ?
x=(1:100); for k=1:5 y(:,k)=k*log(x); end, plot(x,y) You forgot a semicolon, or comma after end or better yet: x=(1...

13 years ago | 1

Answered
A very odd loop behavior
We don't know anything about Function(), but that is certainly not the case in Windows in general for ii = 1:5 ...

13 years ago | 0

Answered
WAV read and play in a 16-bit (8kHz sampling rate) .wav file
Carlos is correct that you should not have not have an actual scalar value as the target of an assignment. It should be nbits or...

13 years ago | 1

Answered
can anyone tell what windowfilt and "w" is doing in this program?
windowfilt is a lowpass filter that is being used a separable 2D filter here: Wsig = conv2(windowfilt,windowfilt,(Y_coef_rea...

13 years ago | 1

| accepted

Answered
Could someone teach me how to add numbers in a series?
Welcome to MATLAB! Spend some time reading the MATLAB Getting Started guide. That will help you a lot. In MATLAB, the key is ...

13 years ago | 1

Answered
Wavelet Pack Decomposition - Is there a faster way?
Do you want wavelet packet or wavelet? You say multi-level wavelet and then you say wavelet packet. If you want wavelet pack...

13 years ago | 0

Answered
input of DWT and output of IDWT not same?
When you say they are not zero how large is the difference? You have to keep in mind that there may be small numerical differenc...

13 years ago | 0

Answered
how to call a function with multiple output argumnts
From the command line: [RHist,GHist,BHist]= RGBHistInter(imData); You just have to save the function RGBHistInter.m in a ...

13 years ago | 0

| accepted

Answered
How to call a defined function when any error occur instead of termination?
Why don't you use the debugging tools and set breakpoints. If it occurs in a function, you can use assignin() to create variable...

13 years ago | 0

Answered
Generate a signal wave - Spectrum using FFT
Since this is obviously a homework problem, I'm not going to just give you answer. But since you included some code as an att...

13 years ago | 0

Answered
What does it mean for a signal to be sparse? Is that the same thing as sparse matrix in Matlab?
Yes, that is essentially the definition. You should keep in mind that a signal may be sparse in some domain and not the other. F...

13 years ago | 0

Answered
Error Integers can only be combined with integers of the same class, or scalar doubles when processing my sample?
The error you get is because m = 1:g; gives you a double precision vector, while a3 is int16. You can remove that error ...

13 years ago | 0

Answered
What do wavelet transform coefficients of zero mean?
That depends on the level you are looking at. If you are looking at level 1, then zero coefficients with the Haar wavelet mean t...

13 years ago | 0

| accepted

Answered
matrix Dimension Must Agree
Without more information about your image size, which you don't provide, it's hard to say, but try transposing the p matrix as I...

13 years ago | 0

| accepted

Answered
what is the mathematical notation equivalent to abs(A) for matrix A?
I agree with Michael that ||A|| is not the correct notation because this is most often used for the determinant. I do not believ...

13 years ago | 0

Answered
Direct thresholding method for matlab
There are certainly several built-in routines for thresholding wavelet and wavelet packet coefficients in the Wavelet Toolbox fo...

13 years ago | 0

| accepted

Answered
how to plot random ones and zeros as sequare wave?
It is better to use stem() for this purpose s=rand(1,10)>0.5; t=1:1:10; stem(t,s,'markerfacecolor',[0 0 1])

13 years ago | 0

Answered
how dwt and wavedec are different ? here why cA1 and C have diffrent values?
As you see, dwt() gives only a level 1 DWT, while wavedec gives you multiple levels. But you are correct that wavedec() simply i...

13 years ago | 1

| accepted

Answered
how to find matrix indices
Do you want the single biggest element in the matrix? If so then, just max() will not give you that. You'll get a row vector of ...

13 years ago | 0

| accepted

Answered
Getting back to time domain ifft
The problem is you are violating the conjugate symmetry property of a real-valued signal. You are scaling the magnitude of th...

13 years ago | 0

Answered
audio signal in spectrogram
You can supply the window argument as a vector. Signal t=0:0.001:2; x=chirp(t,0,1,150); Now...

13 years ago | 0

| accepted

Answered
How to decompose following gps time series ?? Please help me
OK, I suspected but then didn't check, that was dumb of me.. So with that in mind: resid = y-yfit; % find the DFT...

13 years ago | 0

| accepted

Answered
How do I combine 5x1599 array to 7995x1
A = randn(100,10); B = reshape(A,10*100,1); Obviously for you that is B = reshape(A,5*1599,1);

13 years ago | 0

Answered
how to analyze frequency response ?
I don't think you want to use freqz() for that. You want to use either spectrogram() or periodogram(), or pwelch() Which one ...

13 years ago | 0

| accepted

Load more