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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

Respondida
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])

más de 13 años hace | 0

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

más de 13 años hace | 1

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

Cargar más