dlmwrite with text and numbers
    13 views (last 30 days)
  
       Show older comments
    
    Daelyn Greene
 on 19 Feb 2019
  
    
    
    
    
    Commented: Daelyn Greene
 on 19 Feb 2019
            I am wanting to transfer data that is input into a UI to a csv file.  I am using dlmwrite currently but keep running into the issue of the csv not functioning properly.  Dlmwrite is outputting nonsense text, and I frankly am lost on what to try. I've done all I know how to do.
4 Comments
  per isakson
      
      
 on 19 Feb 2019
				
      Edited: per isakson
      
      
 on 19 Feb 2019
  
			dlmwrite,  Write matrix to ASCII-delimited file says dlmwrite(filename,M) writes numeric data in array M to an ASCII format file, i.e not text 
Accepted Answer
  per isakson
      
      
 on 19 Feb 2019
        Something like 
for jj = 1: len
    fprintf( fid, '___\n', num(jj), txt{jj} )
end
is a standard approach 
More Answers (0)
See Also
Categories
				Find more on Text Files in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!