Respondida
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: ...

alrededor de 14 años hace | 1

Respondida
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...

alrededor de 14 años hace | 1

| aceptada

Respondida
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]...

alrededor de 14 años hace | 0

Respondida
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...

alrededor de 14 años hace | 0

| aceptada

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

alrededor de 14 años hace | 0

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

más de 14 años hace | 1

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 3

Respondida
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...

más de 14 años hace | 3

Respondida
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...

más de 14 años hace | 3

Respondida
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 ...

más de 14 años hace | 1

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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 ...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 2

Respondida
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...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 10

| aceptada

Respondida
~= 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...

más de 14 años hace | 5

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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. ...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

Respondida
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,...

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 3

Cargar más