フィルターのクリア

How can i create a term document matrix?

2 ビュー (過去 30 日間)
ellis
ellis 2015 年 3 月 11 日
コメント済み: Stephen23 2015 年 3 月 11 日
I have a directory containing 141 files and i need to make a term document matrix. Can anyone help me please? thanks in advance
this is my inital code to get the files
dirinformation = dir('*.txt'); filenames = {dirinformation.name}; data = cell(numel(filenames),2); data(:,1) = regexprep(fileNames, '.txt','');
for i = 1:length(fileNames) fid = fopen(char(fileNames{i})); data{ii,2} = textscan(fid,'%s','delimiter', '. ; , * : /'); end
  1 件のコメント
Stephen23
Stephen23 2015 年 3 月 11 日
Please edit your code to be more readable by editing the question and using the {} Code button that you will find above the textbox.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeTDMS Format Files についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by