about reading a file

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 日

0 投票

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".

この質問は閉じられています。

質問済み:

2013 年 2 月 8 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by