Answered
how to find mean for the values in an image
Do you have the Image Processing Toolbox? You can use blockproc(), but I'm not sure how you are getting your expected output abo...

12 years ago | 0

Answered
Covariance Matrix by Simulation
You have to consider that you are looking at samples from a sampling distribution of a statistic, the sample covariance. Con...

12 years ago | 0

Answered
Basic Integration [ Integration limits ]
Is Q a constant? I'm assuming you mean that n is function of r, like n(r) Suppose n(r) = r^2 and you want to integrate from [...

12 years ago | 0

Answered
How can I avoid error in mnrfit line 164?
The problem is that you have NaNs in every single row of your X matrix. As the documentation states: "mnrfit treats NaNs i...

12 years ago | 0

| accepted

Answered
Workaround for the norminv function in statistics toolbox
You can use the inverse complementary error function. You'll have to convert from a nonstandard normal distribution, but that sh...

12 years ago | 0

| accepted

Answered
2 method to calculate CCF gives wrong result
Hi, look at this example: rng default; x = randn(8,1); y = randn(8,1); npad = length(x)+length(y)-1; xcor_1 = f...

12 years ago | 0

Answered
How to find annual amplitude and phase of time series
There are a number of ways you can try and estimate it. Do you have a priori knowledge of the frequency? If so you can use linea...

12 years ago | 0

| accepted

Answered
How can I generate band-limited Gaussian white noise??
You cannot generate band-limited "white" Gaussian noise. "White" noise means that the power spectral density is flat, which cont...

12 years ago | 0

| accepted

Answered
How to plot FFT(Fast fourier transform) in MATLAB of given data?
Your axis command is not correct. The frequency axis should only run to 20000 because that is the Nyquist frequency and I'm not ...

12 years ago | 1

| accepted

Answered
How can I display x boxplots of x separate vectors of data side by side in the same figure ?
Put the data in a matrix with each vector a column vector and call boxplot() on the matrix. X = randn(100,4); boxplo...

12 years ago | 0

Answered
How can i use matlab on raspberry pi
There is a support package for Simulink, is that what you are looking for? <http://www.mathworks.com/matlabcentral/fileexchan...

12 years ago | 0

Answered
What does x(y) mean ?
I'm assuming that is just the composition of the two linear operators, in which case that is matrix multiplication. In other wor...

12 years ago | 0

Answered
problem with filtering a signal
Fs = 250; t = 0:1/Fs:10-1/Fs; x = sin(2*pi*10*t)+sin(2*pi*20*t)+0.25*randn(size(t)); y = sosfilt(SOS,x); I...

12 years ago | 1

Answered
problem with filtering a signal
You need to post the code you have used to design your filter. Also, include the sampling rate for your data. For example: ...

12 years ago | 0

Answered
Can anyone help me plz ???
prompt={'Enter The Number Of Lines:'}; title='Draw Line '; n=inputdlg(prompt); A = str2num(cell2mat(n)); ...

12 years ago | 0

| accepted

Answered
How to work with EEG miultiple electrode signal in matlab??
If you wish to use the DWT, you will have to work with one channel at a time. You can perform the DWT on each channel separat...

12 years ago | 0

| accepted

Answered
Is 'Zero-Padding' in 'FFT' meaningful in operation IFFT(FFT * FFT) operation?
Zero-padding before taking the DFT of a signal does not improve the frequency resolution of a spectral estimate. In other words,...

12 years ago | 1

Answered
How generating band limited white noise with matlab
That's not a very good approximation to a bandpass filter between 240 and 435 Hz. Look at your magnitude response: fvt...

12 years ago | 0

| accepted

Answered
How to generate a Bernoulli distributed binary data
Do you have the Statistics Toolbox? You have to specify the parameter for the distribution, which is the probability of a "su...

12 years ago | 0

Answered
"Which Sym" statement so the sym statement will work
The line: Gup = sym(zeros(2,2)); works. Therefore the error must be coming from somewhere else in your CoAndContraMetric...

12 years ago | 0

Answered
How to find frequency from image of spectrogram?
If you output the vector of frequencies from spectrogram(), you will have the frequency information. t=0:0.001:2; ...

12 years ago | 0

Answered
How generating band limited white noise with matlab
band limited white noise is not possible. White noise by definition has a flat power spectral density function. You can gener...

12 years ago | 1

Answered
How to substitute call to imshow() with image()
I don't have any trouble with this: X = randi(256,256,'uint8'); Y = imread('cameraman.tif'); image([X Y]); axis...

12 years ago | 0

Answered
Computing an integral inside a function
It really helps when you show what error you are getting and how you are calling the function at the command line. Give people a...

12 years ago | 0

Answered
MATLAB CODE FOR RACIAN CDF
Do you have the Statistics Toolbox? If so see >>doc prob.RicianDistribution Also, if you have the Comms System Toolbox ...

12 years ago | 0

Answered
I have a problem fo the function 'cdfinfo' error
The first question to ask is does the function work with the shipping example: info = cdfinfo('example.cdf'); make sure ...

12 years ago | 0

Answered
How do I convert the x-axis of an FFT from frequency to wavelength?
This runs perfectly for me: c = 299792458; % pulse duration (T=tau) FWHM = 30e-15; T = FWHM/(2*(sqrt(log(2))));...

12 years ago | 0

| accepted

Answered
How do I convert the x-axis of an FFT from frequency to wavelength?
E_t = exp((-t.^2/(2*T.^2)) + (i*w0*t-(1/2)*i*eta*t.^2)); Edft = fftshift(fft(E_t)); dt = t(2)-t(1); Fs = 1/dt; df = Fs...

12 years ago | 0

Answered
size(m,2) how the function works?
m=[1,2,3; 4 4 4; 3 3 1]; n = size(m,2); returns n = 3 I suspect that you have a different function called size() that p...

12 years ago | 0

Answered
frequency-time of EMG
If I just substitute a vector of random noise the same size as your input Fs = 800; x = randn(841700,1); window = 100...

12 years ago | 0

Load more