How to import an audio file to simulink from app designer
20 views (last 30 days)
Show older comments
Right now i can select an audio file from my pc from App Designer but i need to know how to use it on simulink. Something like the "To multimedia file" block: 

Here's the code i use for playing the song at the moment from App Designer:


So basically i need to be able to use the audio file i select from app designer inside simulink and work with it from there. Thanks!
0 Comments
Accepted Answer
jibrahim
on 24 May 2021
Hi Roberto,
Maybe this answers your scenario: In your App designer code, once the user has selected the file, you can use set_param to set the FIlename parameter of a 'From Multimedia File' block to the selected name. You can then run your model and have access to the desired audio signal in Simulink
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!