dat2xls

Copying (ASCII) data file (including headers & column names) to XLS.

現在この提出コンテンツをフォロー中です。

This program reads a (text data file) consisting of headers, column titles and column data (see attached data.txt). Then it opens or creates existing excel file and saves data into specified sheetname.

NOTE: The program will automatically identify the number of headerlines, columns and the column names using what so called "common sense"!

dat2xls(datfile,xlsfile,sheetname)
dat2xls(datfile,xlsfile)

datfile: Name of data file.
xlsfile: Name of excel file.
sheetname: sheet name (optional, default is 'Sheet1') if specified, a sheet with the specified name must be existing.

Example:

datfile = 'data.txt';
xlsfile = 'data.xls';
sheetname = 'Sheet2';
dat2xls(datfile,xlsfile,sheetname)
%dat2xls(datfile,xlsfile) % Will write to 'Sheet1'

引用

Fahad Al Mahmood (2026). dat2xls (https://jp.mathworks.com/matlabcentral/fileexchange/4517-dat2xls), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: xlswrite - legacy

ヒントを与えたファイル: Example of how to save or read data to an Excel archive.

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.0.0.0

Attached (data.txt)