Beantwortet
How to measure the phase difference between two signals in simulink?
Try multiplying the two signals together, and then passing the result through a low pass filter.

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
How do to FFT Analysis to EEG signals Using Matlab
Please try: >> doc fft >> doc fftshift These commands will open the documentation for these two functions. After y...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
Help with plotting sinusoidal wave
Compare your sampling rate (in samples per second) to the frequency of your sine wave (in hertz or cycles per second). What is ...

fast 14 Jahre vor | 0

Beantwortet
problems with an interval in a for...end
t = (0:dt:tmax)'; N = size(t,1); X = zeros(N,1); X(1) = Xo; ... for k = 2:N ... ... end...

etwa 14 Jahre vor | 0

Beantwortet
spectral analysis, frequency spectrum, power spectral density
>> doc freqz

etwa 14 Jahre vor | 0

Beantwortet
spectral analysis, frequency spectrum, power spectral density
N = 2000; StartTime = 0; StopTime = 200e-9; dt = (StopTime - StartTime)/N; Fs = 1/dt; dF = Fs/N; ...

etwa 14 Jahre vor | 0

Beantwortet
Class project: simple calculator
>> doc input >> doc fprintf >> doc while >> doc cart2pol >> doc pol2cart >> doc sin >> doc cos >>...

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
Specifying range of data from a plot??
xSelect = x(y>=n);

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
declaring variables for codegen
The basic requirement is that you need to specify three characteristics for each input argument of the entry-point functions: ...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
plot with axis properties from another plot
>> doc copyobj

etwa 14 Jahre vor | 0

Beantwortet
How to graph 3-phase voltage using matlab?
Please try: Fs = 8000; dt = 1/Fs; StopTime = 2; t = (0:dt:StopTime-dt)'; N = size(t,1); Fc = 60; ...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
sine wave plot
Please try: %% Time specifications: Fs = 8000; % samples per second dt = 1/Fs; ...

etwa 14 Jahre vor | 36

| akzeptiert

Beantwortet
plotting the frequency spectrum
Please try: %% Time specifications: Fs = 100; % samples per second dt = 1/Fs; ...

etwa 14 Jahre vor | 26

| akzeptiert

Beantwortet
measuring lenght of straight lines
>> doc imtool

etwa 14 Jahre vor | 0

Beantwortet
Summing groups of ones
y = cumsum(x); d = x(2:end) - x(1:end-1); k = ( d == -1 ); z = y(k);

etwa 14 Jahre vor | 1

Beantwortet
measuring a triangle
>> doc imtool

etwa 14 Jahre vor | 0

Beantwortet
How to add harmonics to a signal ? Help please !!
Does the following function do what you want? function y = harmonic(x,k) % assumes that x is a column vector ...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
How to sort the column of matrix according to amount of NaN for each column?
n = sum(isnan(A)); B = transpose([ n ; A ]); C = sortrows(B); R = transpose(C(:,2:end));

etwa 14 Jahre vor | 0

Beantwortet
How to sort the column of matrix according to amount of NaN for each column?
n = sum(isnan(A));

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Matrix operations without for structure
Please try: M = 60e3; N = 2; A = rand(M,N); s = rand(N,N); mu = ones(M,1)*mean(A); X = A - mu; ...

etwa 14 Jahre vor | 0

Beantwortet
How can I filter the negative value?
B = A.*(A>0); C = A.*(A>0)*100 + A.*(A<0);

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Subplot - adding alpha-numeric data
>> doc text >> doc title >> doc xlabel >> doc ylabel >> doc uicontrol

etwa 14 Jahre vor | 0

Beantwortet
Select an element of variable. HELP.
N = numel(B); x = zeros(N,1); for k = 1:N x(k) = min(abs(A(:) - B(k))); end

etwa 14 Jahre vor | 0

Beantwortet
NRZ-4 and NRZ-8
Another function that may help is |reshape|.

etwa 14 Jahre vor | 0

Beantwortet
NRZ-4 and NRZ-8
You need to convert numbers from a binary representation (base 2) to a decimal representation (base 10). That is why I suggeste...

etwa 14 Jahre vor | 0

Beantwortet
NRZ-4 and NRZ-8
*Here is another hint:* Suppose you have a series of randomly generated symbols drawn from the set of integers { 0, 1, 2, 3...

etwa 14 Jahre vor | 0

Beantwortet
NRZ-4 and NRZ-8
>> doc bin2dec >> doc stairs

etwa 14 Jahre vor | 0

Beantwortet
draw rectangular
# Find the min and max of the x components. # Find the min and max of the y components. # Use these values to specify the four...

etwa 14 Jahre vor | 0

Beantwortet
how to f-k filter
The variable |data| should be an array of size _M_ rows by _N_ columns. Each row should represent a different time increment, a...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Convert MATLAB code to C++ code
MATLAB Coder does not generate a |main()| function for you. You have to write this function yourself in C or C++ and include it...

etwa 14 Jahre vor | 0

| akzeptiert

Mehr laden