Exporting data sets to excel
    8 ビュー (過去 30 日間)
  
       古いコメントを表示
    
I'm doing curve fitting.Firstly I read some data-sets from excel into matlab using xlsread.Then in the curve fitting toolbox I created some exclusion rules for the data sets.
I now want to bring these data sets (after creation of exclusion rules) to an xls file.
Please can anyonme advise how to do this please?
回答 (2 件)
  Tigersnooze
      
 2012 年 3 月 7 日
        xlswrite is what you'll want to use. Correct usage can be found in the help, but I'll put it here for you:
xlswrite(filename, data, sheet, range)
So say you want to write matrix A to an excel file with the name myfile.xls, on sheet 1, starting at cell A1:
xlswrite('myfile.xls', A, 'Sheet 1', 'A1')
Keep in mind that if you just put 'A1', and say you have a 3x5 matrix, your data will be written to A1:C5. Sheet can either be a string with the name of the sheet, or an integer value for the sheet index.
Hope that helps.
9 件のコメント
  Tigersnooze
      
 2012 年 3 月 7 日
				Does the fit data come with a plot? You could always go old school and get the data directly from the plot to the workspace using get(gco, 'xdata') and get(gco, 'ydata'). That could be an option, I don't have much experience with cftool.
参考
カテゴリ
				Help Center および File Exchange で Spreadsheets についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


