How can I get audio output on iphone while using matlab mobile.

조회 수: 7 (최근 30일)
Jaswandi
Jaswandi 2013년 7월 12일
답변: Walter Roberson 2015년 12월 8일
I have a script which reads an audiofile and then plays it. I was interested in running the script on matlab mobile since I want the user to be able to hear the sound on the smart phone. For trial I tried loading the exmaple file, chirp.mat but when I try playing the audio it gives me error saying that there is no audio output hardware available. I was connected on cloud network.
Now when I try connecting through computer, the script runs fine but then the sound I hear through computer speakers.
  댓글 수: 2
jeffery Young
jeffery Young 2015년 12월 8일
It's a interesting question. Like to hear the solution as well
Daniel LaCroix
Daniel LaCroix 2015년 12월 8일
From what I've gathered from my use of MATLAB mobile, this isn't possible. When you run something on the app, it isn't actually running on your phone, but on a Mathworks computer, and it sends you the result back. Since your speaker is not directly connected to the computer running the command, it can't play the sound. Maybe it's possible, but I'm not sure how.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 12월 8일
You would need to use tcp() or udp() to transfer the audio data to the iphone in a way that an application on the iphone would be willing to play. The facilities in MATLAB mobile are not able to do this.
There is also no means to transfer files using MATLAB Mobile.

커뮤니티

더 많은 답변 보기:  원격 교육 커뮤니티

카테고리

Help CenterFile Exchange에서 MATLAB Mobile에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by