The following code seems straightforward. But the dialog box showing the files only appears briefly. It seems to be a condition associated with the switch-case construction because uigetfile works o.k. in testg.m outside of the switch-case.
The same action happened with uiopen.
Suggestion for a cure?
function [ ] = testg()
menu_choice = menu('Design Tools', 'Set Up Design File', 'Vehicle Aerodynamics');
switch menu_choice
case 1
[FileName, PathName] = uigetfile('*.mat');
case 2
disp('Aero!');
end