Based on the code snippet and your explanation, it seems like you are trying to load a .mat file when a checkbox in your GUI app is selected, and then use the loaded data in a subsequent function. The problem you might be facing is that the loaded data isn't being assigned to your "left" and "right" properties in your app.
You have to remember that when you use the load function in MATLAB, it loads the variables into the current workspace. When you are inside a function (as you are when you're in the callback for the checkbox value changed), the workspace is local to that function. Therefore, after you load the data, you need to assign the loaded data to your app's properties.
Assuming that the large_pinna.mat file contains two variables, left and right, you could modify the checkbox callback function as follows:
function LargepinnaCheckBoxValueChanged(app, event)
value = app.LargepinnaCheckBox.Value;
loadedData = load("large_pinna.mat");
app.left = loadedData.left;
app.right = loadedData.right;
In this way, you are loading the .mat file data into a structure (loadedData) and then assigning the 'left' and 'right' fields from that structure to your app's properties. Now, you can use app.left and app.right in your other functions as required.