%% Get Parts of File Name for Windows

file = 'H:\user4\matlab\myfile.txt';
[filepath,name,ext] = fileparts(file)

% Copyright 2012 The MathWorks, Inc.