Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Correct

11Size
Leading solution size is 10.
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
Pass
 
%%
y_correct ='Helvetica'
assert(isequal(your_fcn_name,y_correct));
y_correct =
Helvetica
2
Pass
 
%% Prevents cheating 16-Apr-2012 which would lead a solution of size 9
filetext = fileread('your_fcn_name.m')
 assert(isempty(strfind(filetext, 'Helvetica')))
filetext =
function ans = your_fcn_name
get(uipanel,'fontname');
end
%This code written by profile_id 869884