I have opened a xyz.txt file in write mode .I want to print text in xyz.txt file (to be print data is in words/strings) I use fprintf and sprintf both but didn't work . Also I want to use regexp to convert sentences to words ,each in a new line , I

4 views (last 30 days)
I use fileread,regexp, and sprintf inside fopen and then finally use fclose
  2 Comments
Stephen23
Stephen23 on 8 Jan 2018
libra's "Answer" moved here:
Also I want to use regexp to convert sentences to words ,each in a new line , I did it but I want to remove alpha numeric words from my sentences.how can I modify my 'expressions ' of regexp.and write it in xyz.txt file
Stephen23
Stephen23 on 8 Jan 2018
"how can I modify my 'expressions ' of regexp.and write it in xyz.txt file"
Read the documentation for each function that you are using and use the functions correctly to achieve what you want.
If you want help with this then show us what you have tried so far.

Sign in to comment.

Answers (0)

Categories

Find more on Characters and Strings 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!