i made a program that runs with the sound program but no sound comes out

2 ビュー (過去 30 日間)
christopher miller
christopher miller 2019 年 10 月 23 日
コメント済み: Daniel M 2019 年 10 月 23 日
S = menu('please selct sound','Gong','Music','Handel','Laughter','splat');
if (S == 1)
load('Gong.mat') %#ok<*SEPEX>
elseif (S == 2)
load('Music.mat')
elseif (S == 3)
load('Handel.mat')
elseif (S == 4)
load('Laughter.mat')
elseif (S == 5)
load('splat.mat')
else(S == 0);
disp('no')
end

回答 (1 件)

Daniel M
Daniel M 2019 年 10 月 23 日
編集済み: Daniel M 2019 年 10 月 23 日
The file is handel without a capital letter H. Same for gong. You can check the others. Once you load the file you have to play it using sound()

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by