Cody

Problem 522. Cody Computer Part 1 - Guess the system font used by uipanel

Solution 2827962

Submitted on 13 Aug 2020
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
y_correct ='Helvetica' assert(isequal(your_fcn_name,y_correct));

y_correct = 'Helvetica' {'AvantGarde' } {'Bookman' } {'Courier' } {'DejaVu Sans' } {'DejaVu Sans Mono' } {'DejaVu Serif' } {'Dialog' } {'DialogInput' } {'Helvetica' } {'Helvetica-Narrow' } {'Lucida Bright' } {'Lucida Sans' } {'Lucida Sans Typewriter' } {'Monospaced' } {'NanumBarunGothic' } {'NanumGothic' } {'NanumMyeongjo' } {'NewCenturySchoolBook' } {'Palatino' } {'SansSerif' } {'Serif' } {'Symbol' } {'Symbola' } {'TakaoExGothic' } {'TakaoExMincho' } {'TakaoGothic' } {'TakaoMincho' } {'TakaoPGothic' } {'TakaoPMincho' } {'Times' } {'WenQuanYi Zen Hei' } {'WenQuanYi Zen Hei Mono' } {'WenQuanYi Zen Hei Sharp'} {'ZapfChancery' } {'ZapfDingbats' }

Assertion failed.

2   Pass
filetext = fileread('your_fcn_name.m') assert(isempty(strfind(filetext, 'Helvetica')))

filetext = 'function y = your_fcn_name y = listfonts(); disp(y); end %This code written by profile_id 17355128 '

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!