file
Read from a file
Syntax
y = file ( filename )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
filename | TEXT | the name of the file to read | n/a |
Outputs / Return Value
y:yis either a cell array (for a .txt file), or an audio signal (for an audio file)
Notes
- Currently .txt, .wav. .mp3, .aiff files are allowed
- For .txt file, each line of the file is read and made into each item of a cell array