Problem 537. Cody Computer Part 3 - Detect the graphic card used on Cody Computer

Solution 734193

Submitted on 12 Sep 2015 by LY Cao
  • Size: -100
  • This is the leading solution.
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))

S = Version: '2.1 Mesa 7.2' Vendor: 'Brian Paul' Renderer: 'Mesa X11' MaxTextureSize: 2048 Visual: 'Visual 0x3e, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer, Antialias 0 samples)' Software: 'true' HardwareSupportLevel: 'none' SupportsGraphicsSmoothing: 0 SupportsDepthPeelTransparency: 1 SupportsAlignVertexCenters: 0 Extensions: {114x1 cell} MaxFrameBufferSize: 4096 tf = [1x123 char] [1x488 char] ee = [1x123 char]

Index exceeds matrix dimensions.

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

Could not open file your_fcn_name.m. No such file or directory.

Suggested Problems

More from this Author30

Community Treasure Hunt

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

Start Hunting!