This is simple example that will help you to create a ListBox in Matlab.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.