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

New to MATLAB?

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 y = your_fcn_name
y = get(uipanel,'fontName');
end
%This code written by profile_id 1379371