DC chopper
Input x is the sampled signal vector, may have both AC and DC components. output vector y should have AC components removed then...
13 years ago
Solved
newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.
13 years ago
Solved
Filter AC, pass DC
Input x is the sampled signal vector, may have both AC and DC components. Output vector y should not contain any AC component.
...
13 years ago
Solved
Remove DC
Input x is the sampled signal vector, may have both AC and DC components. Output y should not contain any DC component.
Examp...
13 years ago
Solved
Create a matrix from a cell
In this problem , you must convert a cell into a matrix and pad each cell with NaN.
*Example 1:*
If you have the input...
13 years ago
Solved
Joining Ranges
You are given a n-by-2 matrix. Each row represents a numeric range, e.g.
x = [0 5; 10 3; 20 15; 16 19; 25 25]
contains...
13 years ago
Solved
Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix:
1 2 3 ...
Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...