Answered
I cant generate a square wave in matlab using the square wave command
You can enter >>ver at the command line to see what is installed. If you see the Signal Processing Toolbox listed try: ...

14 years ago | 1

Answered
How can I do real-time audio processing using simulink & DSP System toolbox??
Have you tried to use the System objects, dsp.AudioRecorder and dsp.AudioFileReader? They are MATLAB object implementations of t...

14 years ago | 1

| accepted

Answered
repeating elements of a vector
One way lambda=[1; 2]; ng=[3;4]; A = repmat(lambda(1),ng(1),1); B = repmat(lambda(2),ng(2),1); C = [A;B]...

14 years ago | 0

Answered
calculating maximum error
max(abs(x-xtrap)) If you want to know which index in the vector was the largest difference [maxdiff,Index] = max(ab...

14 years ago | 0

| accepted

Answered
finding the freq domain for a record and the fourier transform
Please see the help for fft, periodogram, and spectrogram

14 years ago | 0

Answered
inverse of log10
Just 10^(log10(x)) x = log10(1000); 10^x

14 years ago | 1

Answered
what is the difference between high pass and high boost filter
Hi Jim, normally what I have seen referred to as a high boost filter is when you take an image and possibly amplify it, then sub...

14 years ago | 0

Answered
maximum wavelet decomposition
Hi Ashutosh, both mdwtdec and wavedec will work beyond the maximum level, but it is up to you as the user to know that these coe...

14 years ago | 0

Answered
Zero-mean Gaussian white-noise process with known power spectral density (PSD)
Just use randn() and multiply by the square root of the variance. The theoretical PSD of WGN is \sigma^2 (\Delta t) where \si...

14 years ago | 0

| accepted

Answered
dwt
Use wavedec2, or dwt2. wavedec2 is appropriate if you want a multi-level transform. If you just want the first level, you can...

14 years ago | 0

Answered
2D Plot with 3 axis
Have you seen plotyy? x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*exp(-0.5*x).*sin(10*x); [AX,H1,H2...

14 years ago | 3

Answered
Difference between 'conv' & ifft(fft) when doing convolution?
Here is a demonstration, not a proof, which is not hard. But assume you have two length 3 vectors, if you reverse one with respe...

14 years ago | 3

Answered
Difference between 'conv' & ifft(fft) when doing convolution?
Hi, No, the result should not obviously be the same length. The result should be the length of x plus the length of y -1: length...

14 years ago | 3

Answered
Controlling linewidth in a bunch of curves using 'semilogx'
h = semilogx(n,Ex,'k',n,Ey,'k',n,Ez,'k',n,Ev,'k'); set(h(1),'linewidth',2); set(h(2),'linewidth',1.5); And so ...

14 years ago | 1

| accepted

Answered
FFT with data points in MATLAB
I'm not sure I understand. If x is your data xdft = fft(x); Is the discrete Fourier transform. What more do you mean an...

14 years ago | 0

Answered
spectral analysis, frequency spectrum, power spectral density
"thanks for ur answer....it helps a lot but some clarity i need...when i do freqz(w) for the power data. i see x values of freq ...

14 years ago | 0

Answered
Adding two time domain vectors
You just add the two vectors if they are the same length. x = randn(200,1); y = randn(200,1); z = x+y; The Four...

14 years ago | 0

Answered
how can i creat function of " transfer d'un filtre en Matlab étap par étap"
B = [1 0 0 0 0 0 -1]; A = [1 0 -1]; % view magnitude response fvtool(B,A) % view pole-zero plot zplane(B,A) % fil...

14 years ago | 0

Answered
Using j for imaginary numbers
I know this isn't a real answer, but it seemed a bit long for a comment. I'm guessing all you can do is display the result in th...

14 years ago | 2

Answered
Splitting 200sec of ECG data into single waveforms
You need to reshape them into a matrix and then average. When you say event markers, are you saying that you know which belong t...

14 years ago | 0

Answered
Another error occurs in "aviread" .
You should probably heed the warnings about deprecation and use mmreader.m However, the problem seems more that MATLAB cannot...

14 years ago | 0

| accepted

Answered
Difference between 'conv' & ifft(fft) when doing convolution?
You have to keep in mind that the product of the DFTs of two vectors is Fourier transform of the circular convolution, not linea...

14 years ago | 10

| accepted

Answered
~= means?
It means not equal to as you say. It doesn't have any other meaning in MATLAB. The ~ by itself has meaning. It can be used to no...

14 years ago | 5

| accepted

Answered
How to store a 3-D surf image into a 3-D matrix?
I am not sure I understand your question. If you input a 2-D matrix into surf() then the values of your matrix are the values pl...

14 years ago | 0

Answered
Interpreting frequency using pwelch function
If you sample every two weeks, your frequencies range from 0 cycles/(2 weeks) up to 1 cycle/(4 weeks) your Nyquist frequency. ...

14 years ago | 0

Answered
HOW TO DESIGN AN IIR Low PASS FILTER WITH MATLAB
You can easily design an FIR filter, or use the impulse response from the filters above, and then use linear prediction on those...

14 years ago | 0

Answered
HOW TO DESIGN AN IIR Low PASS FILTER WITH MATLAB
Hi Raj, you can either use basic functions like butter(), cheby1() For example: Lowpass filter for data sampled at 10 kHz,...

14 years ago | 0

Answered
List of example data in Matlab
There isn't a full list anywhere. There are example datasets in most toolboxes, but where they are stored differs. For a given t...

14 years ago | 0

Answered
Dairy Command?
Why can't you create filename as a string variable (character array) and then use diary(FILENAME)

14 years ago | 0

Answered
if statement for range of array values
How about if (any(x<xmax) || any(y<ymax)) disp('do something'); end or do you really want to test if every one...

14 years ago | 3

Load more