sound is coming after the picture has disappeared
1 view (last 30 days)
Show older comments
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 Comments
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!