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

12年以上 前 | 0

回答済み
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年以上 前 | 0

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

12年以上 前 | 0

| 採用済み

回答済み
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 ...

13年弱 前 | 0

| 採用済み

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

13年弱 前 | 0

回答済み
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')]

13年弱 前 | 0

回答済み
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...

13年弱 前 | 0

回答済み
notch filter using butter
If your signal is |x|, just do y = filter(h,x)

13年弱 前 | 1

回答済み
'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...

13年弱 前 | 0

回答済み
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...

13年弱 前 | 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 = ...

13年弱 前 | 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...

13年弱 前 | 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...

13年弱 前 | 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 ...

13年弱 前 | 0

| 採用済み

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

13年弱 前 | 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)

13年弱 前 | 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...

13年弱 前 | 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...

13年弱 前 | 0

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

13年弱 前 | 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...

13年弱 前 | 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,...

13年弱 前 | 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])

13年弱 前 | 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...

13年弱 前 | 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 =...

13年弱 前 | 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

さらに読み込む