How to convert text to matrix?

4 ビュー (過去 30 日間)
phdcomputer Eng
phdcomputer Eng 2018 年 10 月 31 日
編集済み: Stephen23 2018 年 10 月 31 日
I attached a program and a dataset: https://files.fm/u/j8snykvm. This program splits positive and negative comments from the text dataset and then remove stop words and finally converts the text to the numeric matrix but when I attach my excel dataset or convert it to other formats like TXT, CSV... it doesn't work. Is it possible to have your opinion?
  3 件のコメント
phdcomputer Eng
phdcomputer Eng 2018 年 10 月 31 日
Thanks highly for your attention. My purpose is uploading the data but I have an empty output. In general, the aim is how to convert this text to the numeric matrix.
Stephen23
Stephen23 2018 年 10 月 31 日
編集済み: Stephen23 2018 年 10 月 31 日
"My purpose is uploading the data but I have an empty output."
I guess you mean that you want to import the file data into MATLAB.
"In general, the aim is how to convert this text to the numeric matrix"
Use one of MATLAB's file importing tools, they will do that conversion for you:
If you upload your data files here by clicking the paperclip button then someone can help you select an appropriate tool and show you how to use it.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCell Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by