필터 지우기
필터 지우기

How to write data to text file on raspberry pi using matlab

조회 수: 6 (최근 30일)
Pham Trong Hien
Pham Trong Hien 2020년 5월 29일
댓글: Pham Trong Hien 2020년 5월 31일
Hello everyone, I'm making a project with Raspberry pi and Matlab , I successfully to generate the code to Raspberry Pi and make it run standalone. Now I want this application can save data to .txt on Raspberry Pi. Is that possible?

채택된 답변

Ryan Livingston
Ryan Livingston 2020년 5월 30일
The MATLAB functions fopen, fprintf, fclose all support code generation. They use the C runtime library so they can run on the Raspberry Pi to create and write text files.
See the Low-Level File I/O section here:
  댓글 수: 3
Ryan Livingston
Ryan Livingston 2020년 5월 31일
The file will be located wherever you run the generated code. So if you run the generated code on the Pi, the file will be created there.
Pham Trong Hien
Pham Trong Hien 2020년 5월 31일
OK Thanks for your help, I will try it.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by