The required functionality is illustrated by the following example. The step by step process is as follows:
1) While adding the Mask, we can add a Edit box and button to the Mask.
2) The properties of the Edit box are as follows:
3) The properties of the button are as follows:
The callback function is to be added as follows:
In the callback function, we are utilizing uigetfile to open up the File Explorer and there by extracting the file name and path name information and assigning to the Edit box using Simulink.Mask.get function.
The final mask looks as follows:
Hope this helps!