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