cant play alarm sound if the plane is under a certain height.
2 次查看(过去 30 天)
显示 更早的评论
Hello guys, im making a plane simulator and i am trying to play an alarm sound if the plane is under 200 from the ground.
the alarm() fuction is just a normal audioread/audioplayer, and i have tested that the function works.
0 个评论
回答(1 个)
Image Analyst
2022-11-18
Then it must not be getting into the while block. Did you step through it with the debugger?
5 个评论
Image Analyst
2022-11-18
Really? And where does that happen in the function?
And please post code as text, not an image. We can't run images.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!