Here's some MATLAB code that can create the SliderGUI you described. It uses MATLAB's latest syntax for building programmatic GUIs, so it will only work in R2016a or later versions. See comments in the code for details.
% Create the figure container
fig = uifigure;
fig.Position = [100 100 550 150];
fig.Name = 'SliderGUI';
% Create the button, text area, and slider
b = uibutton(fig);
b.Position = [25 25 50 50];
t = uitextarea(fig);
t.Position = [300 25 200 50];
s = uislider(fig);
s.Position = [25 125 500 3];
s.Limits = [0 10];
% Define the ValueChangedFcn for the slider
s.ValueChangedFcn = @(~,~) updateUI(s,b,t);
% Run the update once to set the button color and text value
updateUI(s,b,t)
function updateUI(s,b,t)
% This function runs whenever the slider value is changed. The inputs are
% handles to the slider s, the button b, and the text area t.
% Check the value of the slider, then update the button color and the text
% of the edit box.
if s.Value > 5
b.BackgroundColor = 'red';
t.Value = 'Something nice about yourself.';
else
b.BackgroundColor = 'blue';
t.Value = 'Something even nicer about yourself';
end
end