Cody

# Problem 44622. Check for keywords

Solution 1988553

Submitted on 24 Oct 2019 by Nikolaos Nikolaou
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   Pass
x = 'function'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 1

2   Pass
x = 'persistent'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 1

3   Pass
x = 'classdef'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 1

4   Pass
x = 'variable'; y_correct = false; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 0

5   Pass
x = 'dateadd'; y_correct = false; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 0

6   Pass
x = 'spmd'; y_correct = true; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 1

7   Pass
x = 'partition'; y_correct = false; assert(isequal(check_keyword(x),y_correct))

m = 1×3 cell array {'variable'} {'dateadd'} {'partition'} y = logical 0