- The "script.m" file stores the RGB colour information in three different variables named "blueColor", “greenColor”, and “redColor”. The “setappdata” function is used in this script to store the data in the User Interface.
- The "gui.m" file is used to create the user interface with three buttons named “Blue”, “Green”, and “Red”. Every button will trigger a different callback function when pressed. Within the callback function, the “getappdata” function is used to retrieve the variable values that were passed from the "script.m" file. Then, the color of the application is changed using the “set” function.
- script.m
- gui.m