Answered
Reg : FFT Filter
If you have the Signal Processing Toolbox, you can: 1.) specify your filter using fdesign.lowpass (for example) 2.) design...

15 years ago | 0

Answered
any one help me that i find the psd of the random signal having lenght 1000,i write the code but get some error in the result not find correct result
Hi, I agree with cyclist's comment. I see that you are using autocorr() from the Econometrics Toolbox. Do you have the Sign...

15 years ago | 0

Answered
How to Convert a matlab .m extension file to hex file or c file?
Hi, MATLAB Coder generates C or C++ code from your MATLAB code. http://www.mathworks.com/products/matlab-coder/

15 years ago | 0

| accepted

Answered
how to increase dot size?
You can always plot a symbol at the point of intersection x = -10:10; y = x; y1 = -x; plot(x,y,x,y1,'b'); hold ...

15 years ago | 0

| accepted

Answered
insert columns between successive columns of image?!
Hi, You can use the Wavelet Toolbox function dyadup x = [1 2; 3 4]; y = dyadup(x,'r'); z = dyadup(x,'c'); A = dyad...

15 years ago | 1

| accepted

Answered
discrete math functions
I think that is just telling you that 5!=120 nchoosek(52,5) is equal to 52!/(52-5)! 5! so nchoosek() already accounts for ...

15 years ago | 0

| accepted

Answered
Making a butterworth filter
Hi, You won't be able to make a zero-phase Butterworth filter, but you can implement zerophase filtering with filtfilt. You can ...

15 years ago | 0

| accepted

Answered
Filter a signal to obtain a smooth fft
Hi, You don't need to filter to produce a smooth fft(). Using a fft() directly on a time series and plotting the magnitude squar...

15 years ago | 0

Answered
Importing just one column from a file.
Is it just numeric data without any text, or header? If so, how about dlmread() You can use dlmread() to read a specified ...

15 years ago | 0

Answered
Manual Implementation of STFT of an audio signal.
Why are you plotting each segment and holding it? I think you should store the DFT of the individual segments as column vectors ...

15 years ago | 0

Answered
query regarding linspace
You'll have to convert the cell arrays with cell2mat(), or you'll have to do something like this. C = cell(2,1); C{1} = ...

15 years ago | 1

Answered
query regarding linspace
They have created this envelope with fs=8500; y=sin(2*pi*300*(0:0.000117:3)); A = linspace(0, .9, (length(y)*0....

15 years ago | 0

Answered
query regarding linspace
Without more context, it's hard to say how they are using these vectors, but linspace() is just creating a linearly-spaced vecto...

15 years ago | 0

| accepted

Answered
Need help for these two commands
It is appending (padding) zeros on the end of ADSR so that the total length of x is the length of the signal, sig: length(ADS...

15 years ago | 0

| accepted

Answered
dsp
xcorr() with the 'coeff' option. x = randn(1000,1); y = randn(1000,1); [C,lags] = xcorr(x,y,20,'coeff');

15 years ago | 0

| accepted

Answered
How do I plot lines with different line widths?
Hi: You can use handles. h = plot(x1,y1,x2,y2); set(h(1),'linewidth',1); set(h(2),'linewidth',2);

15 years ago | 6

Answered
how do i calculate THD for m- file waveforms(waveforms in sampling) with and suppression of harmonics for comparison
Hi, You can certainly calculate THD using a spectrum object and the msspectrum method from the Signal Processing Toolbox. For...

15 years ago | 1

| accepted

Answered
Mathworks Products for Electronics Simulation
Have you checked the MATHWORKS' web site? All the products have product pages where you can look at their capabilities. You can ...

15 years ago | 0

Answered
AWGN for a grayscale image
Hi, The answer is both. The Gaussian noise is additive if you use the 'Gaussian' option. J = imnoise(I,'gaussian',M,V) ...

15 years ago | 0

Answered
3db bandwidth of a low pass filter
Another way is to get the magnitude response using freqz() [B,A] = butter(10,0.1); [H,W] = freqz(B,A); magres...

15 years ago | 0

| accepted

Answered
3db bandwidth of a low pass filter
Hi, one way is to use an IIR design in MATLAB which uses the 3-dB point directly in the design of the filter. (FIR filters use 6...

15 years ago | 0

Answered
Return equal values between sets.
How about intersect()? x = 1:3; y = 2:5; [c,Ix,Iy] = intersect(x,y); intersect() does not give repetitions though. Wayn...

15 years ago | 0

| accepted

Answered
find values between constants in vector
freq = 0:1:500; [~,indices] = find(freq>20 & freq < 250); freq(indices)

15 years ago | 0

Answered
DSP
Hi see wavedec() in the Wavelet Toolbox. You need to be careful about what you call the db4 wavelet. If that is the number of...

15 years ago | 0

Answered
MATLAB codes for Wavelet Transform instead of FFT
Hi, Your post title is about the wavelet transform. If you have the Wavelet Toolbox you have the ability to implement both conti...

15 years ago | 0

Answered
how to separate out the lung sounds from heart sounds ?
Hi Chandrasekhar, There are a number of free MATLAB toolboxes on the web for computing information-theoretic measures. The paper...

15 years ago | 0

Answered
forcast using arma
Hi Lukas, Rajiv Singh posted the following function for forecasting a number of time steps ahead, which is want you want. f...

15 years ago | 0

| accepted

Answered
dsp
One way is to look at the period of the autocorrelation sequence with xcorr(). You may want to lowpass filter the speech sign...

15 years ago | 0

Answered
Polynomials - expand (s-p1)*(s-p2)*(s-p3)...(s-pn-1) and find the coefficients an-1, ... , a2, a1, a0 of s^n + an-1*s^n-1 + ... + a2*s^2 + a1*s + a0
Hi Michael, How about using expand() syms s p = (s - 1)*(s - 2)*(s - 3)*(s - 4); expand(p)

15 years ago | 0

| accepted

Answered
How do I delete an entire row if a specific column contains a zero?
Many ways in MATLAB. One way: %create some data X = ones(20,2); X(1:10,2) = 0; indices = find(X(:,2)==...

15 years ago | 11

| accepted

Load more