Cody

# Problem 367. Specific Element Count

Solution 211035

Submitted on 1 Mar 2013
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% assert(isequal(ecount(1:10,2),1))

```Error: Operands to the || and && operators must be convertible to logical scalar values. ```

2   Fail
%% assert(isequal(ecount([1 1 1 1 1 1 1 1],1),8))

```Error: Operands to the || and && operators must be convertible to logical scalar values. ```

3   Fail
%% assert(isequal(ecount([1 1 1 1 1 1 1 1],2),0))

```Error: Operands to the || and && operators must be convertible to logical scalar values. ```

4   Fail
%% assert(isequal(ecount([1 1 1 1 NaN NaN 1 1],NaN),2))

```Error: Operands to the || and && operators must be convertible to logical scalar values. ```

5   Fail
%% assert(isequal(ecount([15 13 6 2 71 -5 -7 15],15),2))

```Error: Operands to the || and && operators must be convertible to logical scalar values. ```