Réponse apportée
frequency-time of EMG
Here you go: Fs = 1000; t = 0:1/Fs:5; x = 2*cos(2*pi*100*t).*(t<1)+3*cos(2*pi*200*t).*(t>1 & t<2)+1.5*cos(2*pi*15...

plus de 12 ans il y a | 0

Réponse apportée
frequency-time of EMG
If you want to find the median frequency with respect to time, you'll have to use the short-time Fourier transform (or some othe...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
the use of Regress
Yes, you should include a vector of ones. The vectors of ones represents the constant term in the linear regression. In other wo...

plus de 12 ans il y a | 0

Réponse apportée
How to compare two vectors with numbers?
A = randi(10,10,1); B = 1:5:50; [IA,IB] = ismember(A,B);

plus de 12 ans il y a | 0

Réponse apportée
Extract data at regular intervals
Are you asking for just X = ones(2e4,2); Y = X(1:10:end,:); Y is a two-column matrix containing every 10-th measureme...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
help me to learn image processing using matlab
You can work through the Image Processing Toolbox tutorials, otherwise, there is a good textbook: <http://www.amazon.com/Digi...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
pls i need a code that can be used to detect the peak of signal (peak detector)
Do you have the Signal Processing Toolbox, have you looked at findpeaks()?

plus de 12 ans il y a | 0

Réponse apportée
Odd results from Fourier Transform
Hi, You are correct. There is a peak around 7 Hz. A couple things, the signal has a nonzero mean, which results in the DC (zero ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
I am working on eeg signals. In feature extraction process,I want to subdivide the spectrum into frequency subbands. Plz suggest me how to do so.
If I understand your methodology, you are obtaining an AR spectral estimate using the Yule-Walker method and then you want to sp...

plus de 12 ans il y a | 0

Réponse apportée
How do you call a nested function?
You want to put the nested function inside another function (as the term nested implies) and then call the top-level function. A...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
How can I randomly select a row from a matrix?
m = randn(17543,17); idx = randperm(size(m,1),1); B = m(idx,:); idx tells you which row you randomly selected. If ...

plus de 12 ans il y a | 0

Réponse apportée
How can I get a time-frequency representation of the resulted details and approximation signals from a discrete wavelet transform?
That is much easier to do with the continuous wavelet transform. You can certainly plot the wavelet coefficients with the approp...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
decimation in dwt is
The problem is that you should first set the dwtmode to 'per' to get the subband sizes you expect. dwtmode('per'); loa...

plus de 12 ans il y a | 0

Réponse apportée
Query about Butterworth filter
Your sampling frequency is 10 Hz as you correctly note. Therefore you should construct your cut_off_freq exactly as you do excep...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Need HDL Coder immediately
You will need to contact MathWorks for that: <https://www.mathworks.com/products/hdl-coder/> In the right hand column, the...

plus de 12 ans il y a | 0

Réponse apportée
Mean a matrix columnwise based on another logical matrix
you mean just: mean(a.*b) or do you want the mean of just the nonzero entries? In other words, divide by the right numbe...

plus de 12 ans il y a | 0

Réponse apportée
set(0, 'DefaultAxesBox', 'off') is not honored by plot()!?
plot() modifies some of the axes properties, 'Box' is one of those. The simplest thing to do is just define a new function that ...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
summary statistics in matlab
See the help for grpstats() and use the whichstats input to specify various group statistics.

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
how to download softdm in matlab R2010
You can get that here: <http://www.mathworks.com/matlabcentral/fileexchange/11359-optical-communications-systems-softdm-ver-1...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Problem with toolbox filter design?
Assume that Fil1 is your filter object, if you enter class(Fil1) does it return dfilt.df2sos? If so, then depending on...

plus de 12 ans il y a | 0

Réponse apportée
What does this line of code mean in non-code speak?
div4, div100, and div400 are all logical variables, 1 or 0. if (div4 & ~(xor(div100,div400))) says "if div4 is true (1) ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to find same contents in two array and print them in new array?
A = [1;15;52;65;81]; B = [2;7;15;40;65;84;96]; C = intersect(A,B,'rows')

plus de 12 ans il y a | 0

Réponse apportée
Denoising by Donoho algorithm
You want to use the thresholded coefficients in the reconstruction. You also made a couple other errors in your code. I =...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
suppose i have a sinusoidal wave with multiple frequencies in it..and it dies out after some time...just like the plot of sprung mass displacement subjected to damping...i referred various videos ..in which they represented the main signal into a for
If you know the frequencies, amplitudes, and phases, then yes, it is very easy to construct signal which is a superposition of s...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can plot integral for sin wave
Use the integrator block. If you attached a sine wave block to an integrator block (in the Continuous library), you will get wha...

plus de 12 ans il y a | 0

Réponse apportée
How should I understand this code
This does not look like it produces white Gaussian noise. For example: n = 1000; m = 1; p=1+rand(1)*99; Gaussian_nois...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How do I calculate the area under a curve?
The upper limit is not a function, you just have to find where tan(x) is equal to x+3, so your limits of integration are [0, tan...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Median line representation in boxplot
Can you please show an example, because the color of the median line defaults to red. So I don't think I understand what you're ...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How can plot integral for sin wave
t=0:0.1:360*22/7/180; x1=sin(t); dt = t(2)-t(1); x2 = cumsum(x1.*dt); x2 = x2-1-x2(1); plot(t,x2) Or ...

plus de 12 ans il y a | 0

Réponse apportée
why doesn't my "if" statement work?
You don't need an if statement, you can use logical indexing. A = randn(8,1); B = randn(8,1); Z = B./A; Z(Z<1) = A(Z<...

presque 13 ans il y a | 0

| A accepté

Charger plus