Risposto
Export to Excel
>> doc xlswrite

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 2

| accettato

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

oltre 12 anni fa | 1

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

Risposto
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?

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

Risposto
Error
Need more info

oltre 12 anni fa | 0

Risposto
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(...

oltre 12 anni fa | 0

| accettato

Risposto
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/...

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

Risposto
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)?

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 1

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

oltre 12 anni fa | 2

| accettato

Risposto
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://...

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 2

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

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

oltre 12 anni fa | 0

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

oltre 12 anni fa | 0

| accettato

Risposto
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);...

oltre 12 anni fa | 1

Carica altro