sound is coming after the picture has disappeared
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
The sound is still coming up though the picture has disappeared. I want the sound to be there as long as the picture is displayed. How can I manage that? :)
function welcome()
img=imread('Borehole_collapse_ny.png');
image(img);
x=0;
y=0;
width=1.0 ;% measured relative to the figure width
height=1.0; % measured relative to figure height
set(gca, 'units', 'normalized','position',[x y width height])
n=5;
x=rand(1,7000);
sound(x,8000);
pause(n);
close
end
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!