フィルターのクリア

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 Center および File ExchangeMATLAB 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