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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

Respondida
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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

Cargar más