file2str

converts a text file into a cell array

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

file2str Reads a text file into a cell array of strings

Input:
* file ... name of the file, i.e. file = 'test.txt'

Output:
* str ... cell array of strings
* fullPath ... path + filename + extension
* file ... filename
* directory ... path to file

Example
Write cell array to textfile.
+ str2file( {'aa','bbbb','','cc'}, 'test.txt' );
Read the text file with
+ t = file2str( 'test.txt' )

See also: str2file

引用

Wolfgang Garn (2026). file2str (https://jp.mathworks.com/matlabcentral/fileexchange/11667-file2str), MATLAB Central File Exchange. に取得済み.

謝辞

ヒントを得たファイル: Generate help files from m-files, text2speech - tts, str2file

ヒントを与えたファイル: Generate help files from m-files, str2file, text2speech - tts

一般的な情報

MATLAB リリースの互換性

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

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

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