Content Feed
已提交
Select Connected Components in N-D Array
Select objects in binary N-D array. Can replace Matlab's "bwselect" which is limited to 2D matrices.
11 years 前 | 1 次下载 |
已提交
Get Largest Connected Components
Get n largest connected-components in n-d array, with arbitrary connectivity support
11 years 前 | 1 次下载 |
已解决
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
11 years 前
已解决
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
11 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
11 years 前
已解决
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...
11 years 前
已解决
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...
11 years 前