필터 지우기
필터 지우기

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 CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by