openC:\temp\data.mat Create Function to Handle an Extension Create a function calledopentxtto handle files with a.txtextension. Create the functionopentxt. functionopentxt(filename) [~, name, ext] = fileparts(filename); fprintf('You have requested file: %s\n', [name ext]);ifexist(file...