필터 지우기
필터 지우기

How can I read data from a text file with code deployed on a Raspberry ?

조회 수: 2 (최근 30일)
I have made text file containing audio data (2 columns of doubles separated by a space) with a code deployed on a Raspberry. Now, I want to use this text file to play audio data through the speakers plugged to the Raspberry (so that's another code deployed on the Raspberry).
The problem, when I use fread, is that I don't receive correct values. I would like to use something similar to importdata() but it does not support code generation.
How can I do ?

채택된 답변

Kiran Felix Robert
Kiran Felix Robert 2021년 6월 21일
Hi Guilhem ,
You can try using fscanf for reading text files. This also supports Code Generation.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by