Cody

Problem 507. Back to basics 26 - Keywords

Solution 1219394

Submitted on 24 Jun 2017 by Augusto Mazzei
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
y_correct = {'break';'case';'catch';'classdef';'continue';'else';'elseif'; 'end';'for'; 'function'; 'global'; 'if'; 'otherwise'; 'parfor'; 'persistent'; 'return'; 'spmd'; 'switch'; 'try'; 'while'}; assert(isequal(keywords,y_correct))

y = 20×1 cell array 'break' 'case' 'catch' 'classdef' 'continue' 'else' 'elseif' 'end' 'for' 'function' 'global' 'if' 'otherwise' 'parfor' 'persistent' 'return' 'spmd' 'switch' 'try' 'while'

Suggested Problems

More from this Author39

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!