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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 4

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

Respondida
Invalid Audio File, too many samples
You cannot have the first sample being 0, MATLAB indexes from 1.

casi 14 años hace | 1

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

casi 14 años hace | 0

Respondida
insert element in vector
a = [1,2,4,5]; b = [a(1:2) 3 a(3:end)];

casi 14 años hace | 24

| aceptada

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

casi 14 años hace | 1

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 3

| aceptada

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

casi 14 años hace | 0

| aceptada

Cargar más