Answered
ismember input - strings vs numbers
Hi Matthieu, I think |ismember(A,B)| requires |A| and |B| to be the same data type. One possible solution is to use |num2str|...

15 years ago | 0

Answered
ismember input - strings vs numbers
Hi Matthieu, Are the criterion pre-defined? If so, how about concatenating them with logical operator, e.g., ismember((...

15 years ago | 0

Answered
How can i import a signal in simulink
Hi Nima, There is a From Workspace block that you can use to import the signal from work space to Simulink, see http://www...

15 years ago | 0

Answered
How to design a digital IIR to match the frequency resp of a measured analog filter
Hi Alfredo, If you have access to Signal Processing Toolbox, you could try to use one of |fdesign.arbmag|. You an also try |f...

15 years ago | 0

| accepted

Answered
find peaks
Hi Mohammad, Can you explain why you cannot use |findpeaks|? I think you can specify MinPeakHeight to avoid false alarm from ...

15 years ago | 1

Answered
How to add the new delayed signal to the PLOT !
Hi Susan, Let's say I have two signals |x| and |y|. To make it simple, let's say x = [1 1 1 1 1 ] so if |y| is the sa...

15 years ago | 1

Answered
How to add the new delayed signal to the PLOT !
Hi Susan, |X+delay| does not delay the signal, it merely adds an offset of |delay|'s value to X. To delay a signal, you need ...

15 years ago | 1

Answered
how to plot geometric figures?
You can just give the coordinates for each vertex, e.g., for square plot([0 1 1 0 0],[0 0 1 1 0]) If you don't want the ...

15 years ago | 0

Answered
FINDING DETERMINANT OF MATRIX AFTER TAKING COVARIANCE
As Oleg mentioned, I think this is a precision thing. I'm curious what is the original number you put in as |x|. Based on the nu...

15 years ago | 0

Answered
autocorrelate rows of matrix without using a for loop
You can use |FFT| if your data is large, e.g., ffta = fft(a,NFFT,2); b = fftshift(ifft(ffta.*conj(ffta),[],2),2) Choose yo...

15 years ago | 0

Answered
Median Frequency
If I understand correctly, you want to find the frequency below which you have 50 percent of the signal power. If that's the cas...

15 years ago | 0

| accepted

Answered
Fourier transform of text data
You need to first load data into MATLAB and then perform FFT. Assume that each column is a different data set, you can do someth...

15 years ago | 0

Answered
Converting FIR Filter Coefficients to Floating data type
Hi Vivek, You can either create a dfilt object using these coefficients and then change the Arithmetic property, see doc...

15 years ago | 0

| accepted

Answered
Chebyshev Type I low pass filter design
Hi Mehrdad, Like you mentioned, you need to know the passband ripple. You may be able to treat your cutoff frequency as the p...

15 years ago | 0

Answered
ifft returns a complex signal from a real fft spectrum; i desire a real signal
Hi Jeff, There is no guarantee that the real spectrum will generate a real signal. Between time domain and frequency domain, if...

15 years ago | 1

Answered
implementation filter gaussian in matlab...
Hi Megah, The following function should be helpful >> doc gaussfir >> doc filter HTH

15 years ago | 0

Answered
how to design a fir filter by the frequency response curve.
This is basically a frequency response synthesis problem. If you have Signal Processing Toolbox, take a look at the following do...

15 years ago | 0

| accepted

Answered
Sinewave analysis in LPF
You can do that too, since firpm gives an FIR filter.

15 years ago | 0

Answered
3D spherical histogram
Hi Abhinendra, You can convert it to rectangular coordinate and then do the surface plot. You just need to make sure that you...

15 years ago | 0

Answered
Sinewave analysis in LPF
Hi Venkatesh, I don't quite understand your question. Since you already used firpmord and firpm, then you already have the or...

15 years ago | 0

Answered
amplitude of FFT output high compared to input
Hi rekh, You may find the following tech note useful: http://www.mathworks.com/support/tech-notes/1700/1702.html HTH

15 years ago | 0

Answered
fdesign and design list of available arguments
Hi Neal, Using your example, you can find the relevant design methods by invoking following command in the command window ...

15 years ago | 0

Answered
Need some help setting up a function for elementary data filtering
You can use logical index to do this. For example, to achieve the first task, you can do something like x = ones(5,4); x...

15 years ago | 0

Answered
Modeling and simulating a signal with an autoregressive model
Hi Walid, If you know parameter a1,a2,..,ap, I think the simplest way to simulate an AR process is 1. Create an IIR filter...

15 years ago | 0

| accepted

Answered
Finding a string in a file
Hi osminbas, You could write a script to achieve this. You can use |cd| to change directories, |what| to list all the files i...

15 years ago | 1

Answered
Blackman FIR bandpass filter design
Hi olga, There is a subtle difference between the specification of an IIR filter and an FIR filter. Because you are designing a...

15 years ago | 0

| accepted

Answered
number^matrix plz help me on this, I cant understand this, plz help me
Hi ailya, As Teja mentioned above, the key thing to understand is a^x can be expanded using Taylor series. The second piece t...

15 years ago | 0

Answered
How to navigate between directories during program execution?
Hi Yashar, The following command may be of your interest doc run doc fullfile HTH

15 years ago | 0

Answered
Code to Set the Number of Spectral Lines of an FFT(Freq Resolution)
Hi Anshul, I think there are two things you need to consider: 1. To get the perfect spectral line for your 60 Hz signal, y...

15 years ago | 0

Answered
adaptfilt functions
Hi Peter, Maybe I understand it wrong but you cannot directly change LMS filter's coefficients because it is updated in each ...

15 years ago | 0

Load more