cant play alarm sound if the plane is under a certain height.
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Image Analyst
on 18 Nov 2022
Then it must not be getting into the while block. Did you step through it with the debugger?
5 Comments
Image Analyst
on 18 Nov 2022
Really? And where does that happen in the function?
And please post code as text, not an image. We can't run images.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!