Info

此问题已关闭。 请重新打开它进行编辑或回答。

about reading a file

1 次查看(过去 30 天)
Niraj Rajput
Niraj Rajput 2013-2-8
关闭: MATLAB Answer Bot 2021-8-20
I want to read a text file from a location to a function as an argument(such as reading a text into tts(text to speech) function parenthesis) help me with instructions
  1 个评论
Jan
Jan 2013-2-8
"Reading a text into a function" is not well defined.

回答(1 个)

Jan
Jan 2013-2-8
This read a text file into a string:
Str = fileread('FileName.txt');
Afterwards you cann call tts(Str) if you have a command called "tts".

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by