Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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. ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

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

plus de 13 ans il y a | 0

Réponse apportée
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)...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
Can I perform subtraction using cell arrays?
out = cellfun(@minus,filteredAreaSample,filteredAreaStudent);

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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))

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
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 = ...

plus de 13 ans il y a | 1

Réponse apportée
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...

plus de 13 ans il y a | 0

Réponse apportée
This is my matlab code to get an input via mic and another one that will be a pre-recorded one ,i have used fft in order to plot the graphs in freq domain.Please could anyone suggest me the way or any algorithm to be used to compare these 2 plots ?
If you want to compare two signals in the frequency domain, look at the help for mscohere.m You can see an example here: <...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 13 ans il y a | 0

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 13 ans il y a | 0

| A accepté

Charger plus