title: How can I save videos as .MAT files with their names in matlab?
body: <p>I have a data set of big number of videos so, I want to read these videos and save each video separately with its name because it consumes a lot of time to process among all these videos every time specially for training and classification. If you have any idea how can read all video files in the specified folder D:\words of format .avi and save each one with its own name as .MAT file. 
  But this code doesn't work
  Thanks,,,</p>
  
  <pre><code>       files = fuf('D:\words');
         for i = 1:size(files);
         name = files{i};
         file = strcat('D:\words',name);
         x = VideoReader(file.avi); %NOT SURE FROM THIS LINE%
         v = read(x)
         name = strcat(name,'.mat');
         save(name,'v'); 
         end
  </code></pre>