Answered
Calculating the same coefficients using same data in Matlab and SPSS
I'm not sure what is going on in SPSS because I don't use that, but I can tell you that repeating the above in R and MATLAB give...

13 years ago | 0

Answered
Undefined function 'nmf' for input arguments of type 'double'
As Matt's comment correctly suggests, you have to add the folder (directory) where the function is located to the MATLAB path. ...

13 years ago | 0

| accepted

Answered
hi how can i load image for bior wavelet compression
You can read various image formats in MATLAB. See the help for imread >>doc imread

13 years ago | 0

| accepted

Answered
How can I set the histogram width?
It sounds like what you want to do is return the counts and bin centers from hist(). In other words, do not plot with hist(), ra...

13 years ago | 1

| accepted

Answered
Accessing values from struct array
data = getfield(structarrayname,'f1'); For example: mystruct = struct('f1',randn(100,1),'f2',randn(100,1),'f3',randn(...

13 years ago | 0

Answered
BUG (??) :pdist x dist x pdist2
Without addressing your issue with pdist, you can use norm() x = [1 -1]; y = [1 1]; norm(x-y,2) % norm(x-y,1)...

13 years ago | 0

| accepted

Answered
Fast fourier transform of a voice signal?
You can certainly obtain the Fourier transform of it to get a frequency domain representation. From your description that it is ...

13 years ago | 0

Answered
Help with semiology subplot
semilogy() and semilogx() are plot commands, you do not need to call plot() on them x = 0:0.1:10; subplot(1,2,2); semi...

13 years ago | 0

| accepted

Answered
what does this error with tic\toc means?
It means to use toc, you have to call tic first somewhere tic; for ii = 1:10 x(ii) = ii+1; end y = toc; If you u...

13 years ago | 1

| accepted

Answered
Need help with subplot
Because you want subplot(3,1,1) subplot(3,1,2) and not subplot(3,3, ...) subplot(3,3, ) means 3 rows and 3...

13 years ago | 0

Answered
how to use zfft and zmusic in matlab?
Those are not MathWorks' functions, so there will not be MathWorks' documentation for them. If the person(s) who wrote those alg...

13 years ago | 0

Answered
reshape function error on number of elements
What do you mean, "you think"? How about just determining the exact size of A. size(A) then you will know exactly how big...

13 years ago | 1

Answered
What is the difference of using ; after end?
None, you don't need a semi-colon after an end statement. Putting a semi-colon in or leaving one off do not generate mlint warni...

13 years ago | 1

| accepted

Answered
Parks-McClellan algorithm for filter design
If you have the Signal Processing Toolbox, you can use firpm.m Or you can use fdesign.bandpass with a specification string that ...

13 years ago | 0

Answered
Adding matrices, resulting matrix is only a copy of one of the matrices being added
Are these large matrices? Can you show us? Of course it is possible that A = A+B+C but that means that B+C must necessari...

13 years ago | 0

Answered
Can I perform subtraction using cell arrays?
out = cellfun(@minus,filteredAreaSample,filteredAreaStudent);

13 years ago | 0

Answered
How to make two conditions for a while loop?
You need the == equals while(x==0 & y==0) For example: syms x y = x; f = x^2; if (limit(y,x,0)==0 & li...

13 years ago | 1

| accepted

Answered
How can I set the histogram width?
You can simply modify the width of the plot hist(randn(1000,1)) ax = gca; get(ax,'position') Now you'll see a vector ...

13 years ago | 0

Answered
How count positive numbers, but when you get a negative, the sum stops. so then, sum the following sequence of positive numbers..
x = randn(100,1); sum(x(x>0)) For an example with integers: x = randi([-5 5],20,1); sum(x(x>0))

13 years ago | 0

Answered
How can I set the histogram width?
If by histogram width, you mean the width of the bins, then you can do that by specifying the number of bins you use as an input...

13 years ago | 0

Answered
Has to be postive integer or logical.
MATLAB indexes from 1, not 0 like C, so you must do t(1) = a; and then in your for loop, you cannot start from 1, becaus...

13 years ago | 1

| accepted

Answered
Is it possible to obtain the imaginary parts along with real part in the evaluation of fast fourier transform?
That is because you want to plot only the magnitude of the DFT coefficients, or the magnitudes squared plot(log10(abs(T)),lo...

13 years ago | 1

| accepted

Answered
wavelet coefficients centroid of audio signal
You already have this thread open: <http://www.mathworks.it/matlabcentral/answers/50149-how-can-i-find-the-centroid-of-the-wa...

13 years ago | 0

Answered
Sampling frequency and FFT output ?
There is a relationship between length of the input signal and the FFT output, not the sampling rate. Fs = 1000; t1 = ...

13 years ago | 1

Answered
Upgrade to Version 2012b
Hi Tobias, For these types of questions, it's always best to contact MathWorks directly. You can look at the FAQ for the s...

13 years ago | 0

Answered
How can I show that the matlab IFFT is accurate enough?
x = randn(1000,1); xdft = fft(x); y = ifft(xdft); max(abs(x-y)) As long as you don't modify the Fourier transf...

13 years ago | 0

| accepted

Answered
Eigenvectors of Complex Matrix
Yes, it does. A = [0 1+i 2i 3;1+i 0 3 1+4i;2i 3 0 1i;3 1+4i 1i 0]; [V,D] = eig(A); V*D %compare to ...

13 years ago | 0

Answered
Writing a wav file using Matlab
If you are using wavwrite(Y,FS,WAVEFILE) then the acceptable range for the data, Y, is -1.0 <= Y < +1.0 so I'm as...

13 years ago | 0

| accepted

Answered
Randomly deleting a 'one' in a column of a binary matrix
If you want to just choose one of the 1's from the matrix to set equal to 0, then indices = find(A>0); chooseset = r...

13 years ago | 0

| accepted

Load more