How to convert text to matrix?
Show older comments
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 Comments
@phdcomputer Eng: please do not post links to third-party file hosting websites. You can upload code and file here by clicking the paperclip button.
"when I attach my excel dataset or convert it to other formats like TXT, CSV... it doesn't work"
What does "attach my excel dataset" mean? What does "it doesn't work" mean? What does any of this have to do with MATLAB or any TMW product?
phdcomputer Eng
on 31 Oct 2018
"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.
Answers (0)
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!