MATLAB Answers

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

17 views (last 30 days)
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?

Accepted Answer

Ryan Livingston
Ryan Livingston on 30 May 2020
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:

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!