Solution 268398

Submitted on 27 Jun 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
%% Which graphic card is used ? S=evalc('opengl info') tf = regexp(S,'Renderer','split') ee=regexp(tf{1},'Vendor =','split') y_correct= strtrim(ee{2}); assert(isequal(your_fcn_name,y_correct))

Error: Index exceeds matrix dimensions.

2   Pass
%% prevents cheating 14-June-2012 filetext = fileread('your_fcn_name.m') assert(isempty(strfind(filetext, 'Brian Paul')))

filetext = function ans = your_fcn_name opengl('info') regexp(ans,'Renderer','split') regexp(ans{1},'Vendor =','split') ans{1} %This code written by profile_id 963450