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

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

12 years ago | 0

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

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

12 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,...

12 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])

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

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

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

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

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

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

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

12 years ago | 0

Answered
how to multiply matrix 2 * 2 if the elements of the matrix are row vectors.
B=[1 0; cos(2.*pi.*fre) 0]; will error out since it is not a 2x2 matrix. You will have to use a cell because fre is a vecto...

12 years ago | 0

Answered
Doppler Frequency estimation in spectrogram
It is not clear to me what you mean here. It depends on what kind of waveform you use. If your waveform is a simple pulse, then...

12 years ago | 0

Answered
animcustant demopattern scanning beam
This is an internal function from MathWorks, so it is not officially supported. However, it is MATLAB code so technically you ca...

12 years ago | 0

Answered
How can I remove DC component from EMG signal?
If you know it's 5, why not simply y - 5 If you don't know it's 5, then you can do y = detrend(y) HTH

13 years ago | 0

| accepted

Answered
FFT: Amplitude 3D Spectrum of a time series
You should be able to use spectrogram for this. http://www.mathworks.com/help/signal/ref/spectrogram.html

13 years ago | 0

| accepted

Answered
Right filter syntax for the [z,p,k] syntax
In general you don't want to switch back to b and a because you then have the numerical issue again. If you have at least MA...

13 years ago | 0

| accepted

Answered
Please help me to plot a linear antenna array pattern. Then how to fing the DOA and then how beamforming can be done by simulink or programm?
You can take a look at Phased Array System Toolbox, there are many examples available. http://www.mathworks.com/products/phas...

13 years ago | 0

Answered
How to calculate the angle deviation w.r.t frequency band in a Wideband Scanning Array?
You can use |ArrayResponse| and |findpeaks| together to achieve what you want. For example, after your code above, you can do...

13 years ago | 1

| accepted

Answered
how can we implement target Tracking in phased array system toolbox
If you are looking for algorithms such as Kalman filtering, then Phased Array System Toolbox currently don't have a ready to use...

13 years ago | 0

Load more