Question
% Create a figure with a white background named 'ABCs_figures' and turns off the figure number figure('Name','ABCs_figures', 'NumberTitle','off','Color','w', 'Position',[420,218,690,432]); % (1)(2) % TAKE A LOOK
% Create a figure with a white background named 'ABCs_figures' and turns off the figure number figure('Name','ABCs_figures', 'NumberTitle','off','Color','w', 'Position',[420,218,690,432]); % (1)(2)
% TAKE A LOOK 1
% get the current figure f = gcf; % (3) what function does this? % set the background color to black f.Color = 'none'; % (4)
% creates a text box in the current figure txt = uicontrol(f,'Style','text','BackgroundColor','w'); %(5)
% TAKE A LOOK 2
% Change the size of the text box so it is 300 pixels wide, 50 pixels high % and is located in the middle of the screen % HINT: look up the position property for uicontrol % HINT: look at the dimensions of your figure window to help calculate your % starting positions txt.Position =[200 200 300 50]; %(6)
% Have the text box display the string: 'GO JACKETS! STING 'EM!' txt. = 'GO SACKETS! STING ''EM!'; % (7) %txt.FontSize = 30; %txt.HorizontalAlignment = 'center'; %txt.ForegroundColor = 'yellow';
% TAKE A LOOK 3
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started