
% Load the file to the 
% matrix, M :
 M = load('sample_file.txt') 
  

  % Add 5 to M :
  M = M +5 


  % Save M to a .mat 
  % file called 
  %'sample_file_plus5.mat':
  save sample_file_plus5 M


  % Save M to 
  % an ASCII .txt file 
  % called 'sample_file_plus5.txt' :
  save sample_file_plus5.txt M -ascii

