Réponse apportée
identifing the beginning and the end of a series
I = find(diff(x)==1); J = find(diff(x)== -1); I is 1 and 14, J is 8 and 21

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Surf() Question
U=(frame_cntr.*10)./10000; The above must be a vector, but in order to use surf(), this must be a matrix. For example: ...

plus de 14 ans il y a | 0

Réponse apportée
Matlab-code for SVD
Hi, You cannot see that code. It is a built-in function.

plus de 14 ans il y a | 0

Réponse apportée
Display Loop Values in a Matrix?
One way is to just collect the values into a matrix inside the loop and display outside C = zeros(3,3); for n = 1:9 ...

plus de 14 ans il y a | 1

Réponse apportée
Compression ratio for wavelets
Hi, if you are using wdencmp(), then use the optional output argument PERF0. If you use wcompress(), use the output argument,...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
wcompress
You need to extend the one dimension of your image to the next power of 2 - 64x64x3, you can pad with zeros, see wextend() for h...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
decompressing an compressed image
I'm not sure what you mean here by decompress, but what you have implemented is lossy compression so you cannot "invert" your pr...

plus de 14 ans il y a | 0

Réponse apportée
"Sprand" problem
Hi Atta, I think perhaps you have some non-MathWorks function on your path that precedes the MathWorks' version. That line shoul...

plus de 14 ans il y a | 0

Réponse apportée
how to pick the number in my command window
Use find() on the second column of the matrix with the 'first' option, then use that index to return the corresponding value in ...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Need help with a For loop or any loop with some sort for my code
If you have the Signal Processing Toolbox, you can use buffer: y = randn(5e4,1); y1 = buffer(y,5e3); Then take yo...

plus de 14 ans il y a | 0

Réponse apportée
How to make the x-axis on a logarithmic scale while keeping the y-axis in dB?
semilogx(f,10*log10(Nc))

plus de 14 ans il y a | 3

| A accepté

Réponse apportée
significant correlation values
You can return the p-values from corrcoef a = 0; b = 1; data1 = a + (b-a).*rand(100,1); data2 = a + (b-a)....

plus de 14 ans il y a | 0

Réponse apportée
storing values in for loop
Looks like you C is a 1x4 row vector and A 4x4. If you want to store the results as rows of a matrix B = A; ...

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
Do what Excel does in curve fitting in Matlab
Are you really sure you want to force the line to go through zero? Do you have the Statistics Toolbox? If so, use regress() ...

plus de 14 ans il y a | 0

Réponse apportée
Simple Linear Algebra problem that's confusing me.
I don't want to just give you the answer, but think of it this way 1.) Think of the typical eigenvalue problem, I'll use B as...

plus de 14 ans il y a | 0

Réponse apportée
plot and ignore certain values
You can set those values to NaN x(x == -1) = NaN; plot(x) They will show up as gaps in your plot.

plus de 14 ans il y a | 4

| A accepté

Réponse apportée
plot and ignore certain values
You can just plot x for x~= -1 or did you mean that the character array "-1" is entered? Not sure what you mean by the " ". ...

plus de 14 ans il y a | 0

Réponse apportée
Cell Array
One way: x = {[1,2,3] [2,4] [1] [1,2,3] [5] [2,4] [1]}; y = cellfun(@num2str,x,'uniformoutput',false); xnew = uniq...

plus de 14 ans il y a | 0

Réponse apportée
dwt3
I'm not sure what you are asking. You can zero out everything in the output of wavedec3 except those subbands you are interested...

plus de 14 ans il y a | 0

Réponse apportée
SEPARABLE 3D WAVELET TRANSFORM???????
You can use wavedec3 in the Wavelet Toolbox, that is a separable 3-D discrete wavelet transform

plus de 14 ans il y a | 0

Réponse apportée
Delete elements in a array
So when you say "array", you mean a 1-D vector? X = randn(49121,1); indices = 390:391:length(X); X(indices) = [];...

plus de 14 ans il y a | 4

| A accepté

Réponse apportée
Delete elements in a array
X = randn(100,100); % not sure how far you want the vector to go indices = 390:391:1e4; X(indices) = []; Then you'll...

plus de 14 ans il y a | 0

Réponse apportée
3d plot
meshgrid() returning 81x81 for situation you describe is correct, but what you indicate seems that you want to first reshape you...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
Replacement X axis with Y axis
I don't want to download the software that site wants me to, but you can just plot the variables differently. x = -pi/2:0.01...

plus de 14 ans il y a | 0

Réponse apportée
How to add gaussian noise to the 1D signal
White just means that there is no correlation among the noise samples. This results in a flat power spectral density, hence the ...

plus de 14 ans il y a | 2

Réponse apportée
How to add gaussian noise to the 1D signal
t = 0:0.001:1; x = cos(2*pi*100*t)+randn(size(t)); You have to specify what you mean by 10%. It would be better if you...

plus de 14 ans il y a | 1

Réponse apportée
dwt3
Hi Slama, There are more than 4 subbands in the 3D discrete wavelet transform. There are 8 subbands. This are listed on the refe...

plus de 14 ans il y a | 0

Réponse apportée
code to calculate psnr and ber of an image
measerr() in the Wavelet Toolbox computes PSNR and a few other approximation quality measures.

plus de 14 ans il y a | 0

Réponse apportée
I need to calculate power spectral density of a signal in MATLAB.
because you computed the DFT of a vector to length 1024, only 513 points are "positive" frequencies. Why not just use spectru...

plus de 14 ans il y a | 0

Réponse apportée
I need to calculate power spectral density of a signal in MATLAB.
You are calculating your frequency vector for a one-sided PSD estimate, but then you try to plot the PSD estimate for the entire...

plus de 14 ans il y a | 0

| A accepté

Charger plus