Answered
code of notch filter
There is an example in the documentation http://www.mathworks.com/help/dsp/ref/iirnotch.html

12 years ago | 0

Answered
Multiple channel wav file fft
Looks like you want to do multi-channel and each row is a channel? MATLAB's |fft| goes down columns by default, so you need can ...

12 years ago | 0

Answered
hidding ans in menu
Put a semi-colon behind |menu| line a = menu ('Wanna plot....?','Yes','No');

12 years ago | 0

| accepted

Answered
Verify the Wiener Algorithms matlab code and Ws are zeros ?
Are you trying to run LMS algorithm? If that's the case, the code as is does not really modify the weights, |w|, i.e. the error ...

12 years ago | 0

| accepted

Answered
Problem with x axis
You need to do plot(ad,A) otherwise the x axis is just the indices of elements in |A|

12 years ago | 0

Answered
How to create a matrix from plot and export into a csv file
Do you mean something like this? M = [get(gca,'XData') get(gca,'YData')]

12 years ago | 0

Answered
how can i map a surface on a shape?
The spacing in a 2D lattice becomes the arc length on a cylindrical surface, so knowing the radius and arclength can help you co...

12 years ago | 0

Answered
notch filter using butter
If your signal is |x|, just do y = filter(h,x)

12 years ago | 1

Answered
'reshape' function in MEX ?
Are you getting an error from MATLAB Coder when compiling to MEX? If so, it is probably because you assign the result of |reshap...

12 years ago | 0

Answered
eliminating some elements randomly from a matrix
A = magic(5) k = 2; [M,N] = size(A); ridx = zeros(k,N); for m = 1:N ridx(:,m) = randperm(M,k); end ci...

12 years ago | 1

Answered
I am trying to plot the value of the function P(x,y) along the line segment that connects (0,0) and (6,4)
I think you need to use |plot3| for this. You need to first find x and y points you want. For example x = 0:0.01:6; y = ...

12 years ago | 0

Answered
Normalization of a given filter to have unity gain at DC
I don't quite understand your question. For example, in your filter formed by |d| and |c|, it has a null at DC, how do you expec...

12 years ago | 0

| accepted

Answered
Periodogram Shows power/magnitude
Hi Robert, 9-fold is about 10 dB, i.e., 10*log10(9) = 9.5424 If you are referring to the reference point, the signal is as...

12 years ago | 0

Answered
How to scale PSD/Pwelch highest point to 0dB?
You just need to normalize it, for example plot([-(Len/2):((Len/2)-1)]/1024,10*log10(fftshift(Pxx/max(Pxx)))); and ...

12 years ago | 0

| accepted

Answered
problem of matrix operations
You can do rownumber = 4 colnumber = 4 bsxfun(@minus,(1:rownumber)',1:colnumber) Or considering the special for...

12 years ago | 1

| accepted

Answered
Plotting the R(n) and compute n
You need to pass in a number or define m first, for example m = 3 func(m)

12 years ago | 0

Answered
Graphics Default size, width , etc
You need to set the correct default property. For example, I actually don't think DefaultMarkerSize can work because default pro...

13 years ago | 1

Answered
Unable to compile mfilt.cicdecim and fvtool by Matlab Compiler 5.0
The apps and UIs are not compilable. See the documentation regarding the compiler limitation http://www.mathworks.com/product...

13 years ago | 0

Answered
Zero padding or not?
fft(x,1024) Will automatically zero pad your signal to 1024 points and perform FFT

13 years ago | 1

| accepted

Answered
how to generate a colored noise with a particular power level such as 3db?
3dB is a relative quantity and has to be compared to a reference level. Say you have a signal of 1 watts,and you want a noise le...

13 years ago | 0

| accepted

Answered
about the calculation of phase spectrum for a set of coordinates
This looks to me is essentially angle(fft2(theta)) where theta is the function exp(j\theta_i) defined at each (xi,...

13 years ago | 0

Answered
How to create a meshgrid padded with a triangle of zeros in the upper-right and lower-left corners
You can use toeplitz([1:7 0 0 0],[1 0 0 0])

13 years ago | 0

| accepted

Answered
How to use the measure command in filter design
You need to go through the |fdesign| interface so |measure()| can work. Otherwise, if you simply specify the filter coefficients...

13 years ago | 0

Answered
hermitian symmetry in IFFT !
If it is some small imaginary part due to numerical precisions, you can probably preprocess your input to IFFT by doing x =...

13 years ago | 1

Answered
Functions: ans at end...where it is coming from?
The first two answer you get is due to the fact you didn't end the corresponding lines in your function with semi-colon. The ans...

13 years ago | 0

Answered
How to record analog data through a microphone jack using MATLAB
You can use dsp.AudioRecorder to do this. There is an example in the reference page http://www.mathworks.com/help/dsp/ref/dsp...

13 years ago | 0

Answered
How to implement rectangular and welch window in MATLAB to plot fft respectively?
Rectangular window is the same as no window. For Welch window, you can find it on file exchange at http://www.mathworks.com/m...

13 years ago | 0

Answered
What is the difference between "fdesign" and "fir" ?
d = fdesign.response(spec) defines a particular filter specification. Based on that specification, if you do myFilter...

13 years ago | 0

| accepted

Answered
Linear Frequency Modulated Waveform
The |plot()| function on LinearFMWaveform, plots only the real part of the waveform, so the amplitude is indeed varying. If y...

13 years ago | 0

Load more