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

2 次查看(过去 30 天)
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.

请先登录,再进行评论。

更多回答(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