Réponse apportée
Difference in Wavelet decompostion coefficients
Hi Romendra, The export approximations from the GUI is not the approximation coefficients, it is a projection onto a particular ...

plus de 13 ans il y a | 0

Réponse apportée
Autocorrelation Matrix from a vector
No, that is not correct. The way you are doing it is not giving the autocorrelation matrix. For one thing your matrix is not goi...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
design a filter using only fft
From your description it sounds like you are *not* also zero-ing out the complex conjugates. You are zero-ing out only the "pos...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or method 'Rayleighchannel' for input arguments of type 'double'
If you want to call the RayleighCH function from the command line, it is best to make it a standalone function and the folder mu...

plus de 13 ans il y a | 0

Réponse apportée
How can i zeroing elements in a matrix?
I'll assume you have a 1-D vector, if that vector is X, then just X(1:1e4) = 0; If this is not what you mean, please be...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or method 'Rayleighchannel' for input arguments of type 'double'
I'm confused because your title and your actual text differ in what you say is undefined. Is it RayleighCH or Rayleighchannel...

plus de 13 ans il y a | 0

Réponse apportée
Help with nesting subfunctions?
Your problem is here: cos(x)=exp(1i.*x)-1i*sin(x); You should spend some time reading the MATLAB Getting Started material...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Warning: Rank deficient, rank = 0... means what?
The inverse of a NxN matrix only exists only if the matrix has rank N. In other words, the linear operator that the matrix repre...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how i can generate random points inside a cube?
You can use rand() Z = rand(10,10,10); The above gives you the unit cube. You can translate this and scale the side len...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to merge the four arrays into one array
It depends what you mean by merge. Are these arrays the same size? Look at cat x = randn(2,2); y = randn(2,2); z =...

plus de 13 ans il y a | 0

Réponse apportée
How to manually adjust the decimal point?
x = 5*rand; fprintf('%1.6f\n',x) Or if you want to keep it as a string: y = sprintf('%1.6f\n',x); Note now: ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Returning Plot handle From a function.
you don't use two output arguments, just h = fill() If you want a handle to the current axes, you can just do ...

plus de 13 ans il y a | 0

Réponse apportée
How to add white gaussian noise with variance 1 to a signal and calculate the signal-to-noise ratio?
Just use randn() t = 0:0.001:1; x = cos(2*pi*100*t)+randn(size(t)); To use a different variance, multiply randn()...

plus de 13 ans il y a | 4

| A accepté

Réponse apportée
Bode phase can be lower than -90 deg ???
Hi, the phase in bode() is computed using atan2(). If you look at the help for atan2(), you'll see that it returns an angle in t...

plus de 13 ans il y a | 0

Réponse apportée
remez function not working
You did not tell us what Fs is Fstop=2005; Fcutoff=2500; F1=2*Fcutoff/Fs; F2=Fstop/Fs; but the potential problem ...

plus de 13 ans il y a | 0

Réponse apportée
remez function not working
You have not told us what F1 and F2 are, so we cannot reproduce your problem. But, something like: N = 41; F =...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
NaN result on xcorr?
If you have a a vector of zeros, then using the 'coeff' option will give you NaNs because you are normalizing by the product of ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
fdatool, how to use generated C header file
It's giving you the filter coefficients declared as constants so that you can use them in a C program to filter data. Did you wr...

plus de 13 ans il y a | 0

Réponse apportée
Invalid Audio File, too many samples
I'm not sure why you want to multiply by H here since it is just a vector or ones, but ok. I have a file called test.wav that ha...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Invalid Audio File, too many samples
You cannot have the first sample being 0, MATLAB indexes from 1.

plus de 13 ans il y a | 1

Réponse apportée
How to display units (micro, mili,mega..) automatically?
Why don't you just scale the elements by the appropriate factor? t = 0:1e-6:0.001; x = cos(2*pi*1e5*t); plot(t.*1e6,x...

plus de 13 ans il y a | 0

Réponse apportée
insert element in vector
a = [1,2,4,5]; b = [a(1:2) 3 a(3:end)];

plus de 13 ans il y a | 24

| A accepté

Réponse apportée
How to use Window functions?
I'm not sure that this forum is the proper place for a general discussion about windows. In signal processing, windows have two ...

plus de 13 ans il y a | 1

Réponse apportée
apply a function to every element of a square matrix
Yes, arrayfun() For example: x = randn(10,10)+1i*randn(10,10); y = arrayfun(@conj,x); or x = randn(1...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
making a matrix from another one
I'm not sure why you want to do this with a for loop since you are just creating a copy of the original matrix. You'd be much be...

plus de 13 ans il y a | 0

Réponse apportée
Concatenation with array of different dimensions
a1=[1;2]; a2=[4;1;9]; a3=[5]; a1 = padarray(a1,1,'post'); a3 = padarray(a3,2,'post'); A = reshape(cat(1,a1,a2,a3)...

plus de 13 ans il y a | 1

Réponse apportée
How to transform function in MatLab? Shift, Scale etc.
I don't know of a shift operator for symbolic functions. syms t tprime = t-2; x1 = exp(t)*heaviside(2*t); x2 =...

plus de 13 ans il y a | 0

Réponse apportée
how we can select 1/4th part of picture in matlab
Use imcrop() if you have the Image Processing Toolbox.

plus de 13 ans il y a | 0

Réponse apportée
choose elements from array randomly
You must be using an older version of MATLAB, do this instead: % create vector a = randn(100,1); % determine how...

plus de 13 ans il y a | 3

| A accepté

Réponse apportée
extraction of video frames in simulink
If you just want to view the video one frame at a time, then just use the "Next Step" button on the toolbar. Just below the prin...

plus de 13 ans il y a | 0

| A accepté

Charger plus