Friday, 2 November 2018

MATLAB - Change default background color of the GUI Grid Window


Scroll towards the end of the following function of the code:

function varargout = yourprojectname_OutputFcn(hObject, eventdata, handles)

% Get default command line output from handles structure
varargout{1} = handles.output;

Type the following code here:

%Rashmi:: Set Background Color of the Grid Window
set(gcf,'color','green')










No comments:

Post a Comment

MATLAB - Clear all Axes on button press in Pushbutton

% --- Executes on button press in pushbutton function pushbutton_Callback(hObject, eventdata, handles) % hObject    handle to pushbutton (s...