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

13 years ago | 0

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

13 years ago | 1

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 4

| accepted

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 0

| accepted

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

13 years ago | 0

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

13 years ago | 0

| accepted

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 24

| accepted

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

13 years ago | 1

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

13 years ago | 1

| accepted

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

13 years ago | 0

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

13 years ago | 1

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

13 years ago | 0

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

13 years ago | 0

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

13 years ago | 3

| accepted

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

13 years ago | 0

| accepted

Load more