Assign matrix elements to separate variables
Given an input array, return each element of the array as a separate variable. If the number of output arguments (k) is less tha...
Find S-parameters of the circuit
Refer to <http://en.wikipedia.org/wiki/Scattering_parameters> for the information about the system of scattering parameters.
...
6 years ago
Solved
Would Homer Like It?
Given a matrix of ones and zeros, you must determine if there are any doughnuts present (would Homer Simpson like it?). A doughn...
combine cells
A cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the conte...
6 years ago
Solved
Low level NaN
* I have a dataset. Columns represents different variables.
* A variable may start with NaN or any double type number.
* If i...
6 years ago
Solved
replace nan values iteratively.
replace nan values with the average of two neighbour non-nan value iteratively as follow;
x = [2; 4; 6; nan; nan; nan; 10];
...
6 years ago
Solved
Delete the rows in the middle
We will delete the rows in the middle and keep the first and the last rows.
For example if input is
[1 2
1 7
1 8
...
6 years ago
Solved
Calculate trends in time series
Create a new variable that has trends in input series. If _t+1_ is bigger than or equal to _t_, than trend in _t_ will be 1, oth...