Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Incorrect

35Size
Leading solution size is -100000.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
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: Undefined function 'regexp' for input arguments of type 'struct'.

	    	
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
S=opengl('data');
tf = regexp(S,'Renderer','split');
ee=regexp(tf{1},'Vendor          =','split');
strtrim(ee{2});
%This code written by profile_id 870409