답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

답변 있음
how to design a low pass the filter, h1, cuttoff frequency=0.25 using a Kaiser window with suitable parameters (you have the liberty to choose the value of beta) to get a linear phase filter using fdatool. how to cater cutoff frequency in fdatool?
To translate the angular frequency to nominal frequency, you just need to know that the sampling rate corresponds to 2*pi, so ...

12년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

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

12년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 초과 전 | 0

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

12년 초과 전 | 1

| 수락됨

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 0

| 수락됨

답변 있음
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년 초과 전 | 0

답변 있음
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년 초과 전 | 1

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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...

거의 13년 전 | 0

답변 있음
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...

거의 13년 전 | 0

답변 있음
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...

거의 13년 전 | 0

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

| 수락됨

답변 있음
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년 전 | 0

답변 있음
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년 전 | 1

| 수락됨

답변 있음
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년 전 | 0

더 보기