フィルターのクリア

how do I convert a string answer into a readable audioread

1 回表示 (過去 30 日間)
C Hart
C Hart 2016 年 9 月 25 日
コメント済み: C Hart 2016 年 9 月 25 日
I want to create a game where users can upload audiofiles and play them at the same volume.
To upload the audiofiles, so far I have tried:
X_1 = input('First song: ','s');
[DJ_Music{1},Fs] = audioread('X_1''.m4a');
However, this gives an error everytime I fill in the audiofile name, does anyone have tips?
It probably has something to do with the string and characters formation?

採用された回答

Walter Roberson
Walter Roberson 2016 年 9 月 25 日
X_1 = input('First song: ','s');
[DJ_Music{1},Fs] = audioread([X_1 '.m4a']);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by