dlmwrite with text and numbers
    12 次查看(过去 30 天)
  
       显示 更早的评论
    
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 个评论
  per isakson
      
      
 2019-2-19
				
      编辑:per isakson
      
      
 2019-2-19
  
			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 
采纳的回答
  per isakson
      
      
 2019-2-19
        Something like 
for jj = 1: len
    fprintf( fid, '___\n', num(jj), txt{jj} )
end
is a standard approach 
更多回答(0 个)
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


