Answered
Export to Excel
>> doc xlswrite

14 years ago | 0

| accepted

Answered
Kalman Filter
Please take a look: <http://www.mathworks.com/matlabcentral/fileexchange/?term=kalman Search MATLAB Central's File Exchange for...

14 years ago | 0

Answered
Trying to use a Butterworth Filter
I would recommend that you stay in the time domain, and simply use the |filter| function. It is much simpler, and probably more...

14 years ago | 2

| accepted

Answered
matrix repetition
out = repmat(M,1,k);

14 years ago | 1

| accepted

Answered
computing SNR in matlab
# What is the amplitude of the sine wave? # Is the noise additive white Gaussian or some other type? If Gaussian, what is the ...

14 years ago | 0

Answered
filter
Code: dt = 0.001; % sampling time (seconds per sample) Fs = 1/dt; % sampling rate (samples per second) ...

14 years ago | 0

| accepted

Answered
filter
Please try: dt = 0.001; Fs = 1/dt; Fnyq = Fs/2; Fco = fm + bw; wn = Fco/Fnyq; HTH.

14 years ago | 0

Answered
Confuse on while and for loop with interval that starts with 0
Please try: A = 0:Np:720-Np; HTH. Rick

14 years ago | 0

| accepted

Answered
How to plot ECG and more...
Hi Lukas, # Please try using the Zoom tool from the figure window's toolbar to zoom in closer to the plot; I think you will se...

14 years ago | 0

Answered
MATLAB CODE TO C CODE
# Do you have access to MATLAB Coder? # Which release of MATLAB are you using? # What operating system are you running?

14 years ago | 0

Answered
How to plot ECG and more...
1. Please try the following: N = size(y,1); Fs = 360; dt = 1/Fs; t = dt*(0:N-1)'; figure; plot(t,y); 2...

14 years ago | 0

| accepted

Answered
frequency spectrum using fft function
It looks like you have a good start. Here are some additional functions that will help complete the assignment: >> doc fft ...

14 years ago | 0

Answered
Error
Need more info

14 years ago | 0

Answered
Matrices
Please try the following: X = [ 5 171 ; 5 300 ; 5 530 ; 5 700 ]; M = 173; N = 712; Y = zeros(M,N); idx = M*(X(...

14 years ago | 0

| accepted

Answered
Using IFFT for obtaining time response of measured freq response
I modified the code I posted earlier to correct the scaling factor: Fs = 2e6; L = 1024; dF = Fs/L; f = (-Fs/...

14 years ago | 0

Answered
Spatial Frequency
Please check this related question: <http://www.mathworks.com/matlabcentral/answers/13896 fftshift of an image> HTH.

14 years ago | 0

Answered
Using IFFT for obtaining time response of measured freq response
Please check this related answer: <http://www.mathworks.com/matlabcentral/answers/15770 Scaling the FFT and the IFFT> HTH....

14 years ago | 0

Answered
Using IFFT for obtaining time response of measured freq response
Do you have access to either the Control Systems Toolbox or the Signal Processing Toolbox? If so, which one (or both)?

14 years ago | 0

Answered
Using IFFT for obtaining time response of measured freq response
Please try: Fs = 2e6; L = 1024; dF = Fs/L; f = (-Fs/2:dF:Fs/2-dF)'; s = j*2*pi*f; Fc = 50e3; alpha = 2*pi...

14 years ago | 0

Answered
embedded matlab function
Please try: persistent j if isempty(j) j = 0; end j = j + 1; HTH. Rick

14 years ago | 1

Answered
Simulink import matrix directly to matlab function block
There are two possibilities that I can think of: # Parameter # Data Store Memory *Parameter* You can specify the m...

14 years ago | 2

| accepted

Answered
indexing complex numbers
1. Please try the following code: A = 2.2631; a = a/A; 2. Then use the same approach as in the answer to this <http://...

14 years ago | 0

Answered
Integrate in embedded matlab function
In order to integrate over time, you need to maintain a state variable (in this case, |xhat|) across multiple calls of your Embe...

14 years ago | 0

| accepted

Answered
indexing complex numbers
x = ( 1 + real(a) ) / 2; y = ( 1 - imag(a) ) / 2; b = [ y ; x ];

14 years ago | 0

| accepted

Answered
How to plot binary input ?
Please try: figure; stairs([a,a(end)]); HTH.

14 years ago | 2

| accepted

Answered
how to create discrete heaviside
N = 200; k = 1:N; p = 15; x = (k > p); figure; stairs(k,x);

14 years ago | 0

Answered
secons max number in a vector
a = max(X); Y = X(X ~= a); b = max(Y);

14 years ago | 0

| accepted

Answered
How to plot binary input ?
figure; stairs(a);

14 years ago | 0

Answered
Audio signal max/average amplitude
>> doc wavread >> doc max >> doc min >> doc mean

14 years ago | 0

| accepted

Answered
how to solve quadratic equation?
Please try: x = zeros(2,1); d = sqrt(b^2 - 4*a*c); x(1) = ( -b + d ) / (2*a); x(2) = ( -b - d ) / (2*a);...

14 years ago | 1

Load more