Answered
how to do convolution without commands
I take it when you say "without commands", you really are just saying without conv(). It appears to me you have 1-D vectors from...

14 years ago | 2

Answered
what is the use of seed.
(1) is seeding the random number generator so that it produces a predictable sequence of "random" numbers. For example, if yo...

14 years ago | 0

Answered
Getting the average of a vector
Hi Maeve, how about just reshaping the data so you have 48 rows by 365 columns, then just taking the mean of the columns? x...

14 years ago | 3

Answered
How to test if two signals are equal
As a simple example of my answer: "Why do you need to input a signal? If you have the Fourier transform of your filter and th...

14 years ago | 0

| accepted

Answered
How to test if two signals are equal
Why do you need to input a signal? If you have the Fourier transform of your filter and the coefficients that give the differenc...

14 years ago | 0

Answered
Numerical values into plot issue
I suspect maybe you want Tfuel = zeros(nr+1,1); instead of Tfuel = zeros(nr+1); With the above you are creatin...

14 years ago | 0

| accepted

Answered
How can convert .wav file to .mat file ?
Use wavread to read the file into MATLAB. Then, use save to save the file as a .mat file. See the help for wavread and save ...

14 years ago | 0

| accepted

Answered
denoising using wavelet
Hi, You have a couple of options. 1.) use wavemenu. Enter wavemenu at the command line and then choose, Wavelet 2-D, or SWT...

14 years ago | 0

Answered
How to plot binary input ?
a = [ 1 0 0 0 1 1 0 1 0 1 0 1 0 1 ]; stem(a,'markerfacecolor',[0 0 1]); set(gca,'ylim',[-1.5 1.5])

14 years ago | 1

Answered
How to plot WAV file
If this is the output of wavread, then see if you have two channels in y [y,fs] = wavread(filename); If y is two-channel...

14 years ago | 12

| accepted

Answered
Derivative of the function
syms x t u = 3*cos(t); diff(x^(2*t)+u,t)

14 years ago | 0

Answered
How to carry out a chi-squared distribution fit?
How about using mle() with the distribution 'gamma' since the chisquare distribution is just a gamma with alpha parameter nu/2 (...

14 years ago | 1

Answered
how to create series of indices from vectors of numbers
Hi, one way: input = [1 45 70]; y = arrayfun(@(x) x:x+10,input,'uni',0); y = cell2mat(y);

14 years ago | 0

| accepted

Answered
real time decimating
In the MATLAB evironment, you could use a System object, dsp.FIRDecimator for example. Specify your FIR filter as the numerat...

14 years ago | 0

Answered
peak value at the centre of F(0,0) in magnitude plot of fourier transform
Didn't I show this already? rng default; x = randn(20,20); xdft2 = fft2(x); sum(x(:)) xdft2(1,1)

14 years ago | 0

| accepted

Answered
how to sraw a circle
You have not really given us much to go on. What do you mean "faster"? compared to what? You have not shown us any code. ...

14 years ago | 0

Answered
fractional delay using FFT,IFFT
Not sure if the DSP System Toolbox is an option for you, but if so, please see: fdesign.fracdelay

14 years ago | 0

Answered
how to takeout low frequency components from an image
Hi, you can create a high-pass separable filter and do that: [x,y] = meshgrid(-200:200); r = hypot(x,y); km =...

14 years ago | 0

Answered
Comparison of PSD calculating methods.
Fs = 1000; t = 0:1/Fs:1-1/Fs; x = cos(2*pi*100*t)+randn(size(t)); Rxx = xcorr(x,'biased'); Rxxdft = abs(fftshift(f...

14 years ago | 0

| accepted

Answered
Calculate PSD using FFT
The PSD is an even function of frequency, so you only need from 0 to the Nyquist, if you want to conserve the total power, you h...

14 years ago | 1

Answered
Calculate PSD using FFT
Why don't you just use spectrum.periodogram? Fs = 1e3; t = 0:1/Fs:1-1/Fs; x = cos(2*pi*100*t)+randn(size(t)); plot...

14 years ago | 0

Answered
Time series ARMA model estimation results different from textbook
Hi Yong, I don't know what to say, but an ARMA(4,3) model fitted in R with arima is not close to what the book lists either. Per...

14 years ago | 0

| accepted

Answered
Comparison of PSD calculating methods.
Hi Alex, If the time series is zero-mean, the periodogram is equivalent to Fourier transform of the biased autocorrelation seque...

14 years ago | 0

Answered
deonising the signal using wavemanu
Hi Jayesh, In R2011b, wavelet and wavelet packet denoising and compression through wavemenu has MATLAB code generation. In other...

14 years ago | 0

| accepted

Answered
what is amplitudes of a wav signal...
Are you trying to relate the values of the wav file to some physical variable, like volts? If that is the case, then you need to...

14 years ago | 0

Answered
How to extract number from what should be a string
Can you use char()? textdata = {{'teststring'}}; class(textdata{1}) % but output = char(textdata{1}); class(output...

14 years ago | 0

| accepted

Answered
Determine Expression
Have you read the MATLAB Getting Started Guide? There are plenty of examples on using loops.

14 years ago | 0

Answered
How to shift the pwelch plot
If you really want DC to be in the middle, you can do this. Fs = 1e3; t = 0:1/Fs:1-1/Fs; x = cos(2*pi*100*t)+randn(si...

14 years ago | 0

Answered
Finding out the number of times a specific row appears in a large Matrix.
How about setdiff() with the 'rows' option specified. x = randi(10,10,6); y = x(3,:); x(1,:) = y; [C,I...

14 years ago | 0

| accepted

Answered
Incorrect integral being returned.
I don't see what is wrong with that antiderivative, maybe it differs by a constant from what you expect, but it is a valid antid...

14 years ago | 0

| accepted

Load more