If you want to write professional looking code, QA guidelines suggest, as an option, that you put the version of your software somewhere, like on a splash screen or title bar of your app, or on some static text on the GUI. Here's a snippet for how to put the version number in the title bar of your code:
titleBar = sprintf('My app - Version %s', Version_Number);
set(handles.figMainWindow, 'Name', titleBar);
Somehow you set Version_Number to be what you want it to be. For example, you could hard code it into the code if you want (not what I do, but you could). This way whenever anyone runs your code they know what version they're running. You should also log the version number into your output (for example an Excel workbook). This is particularly important if you are using your software for any claim support or intellectual property (patent) work.