- Save your data to a binary file withn the SD card of Raspberry Pi (please refer fwrite )
- Transfer the binary file to MATALB and read the data from the binary file (please refer fread )
- You can plot the required data in MATLAB
How to save a figure on Raspberry PI?
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I have a standalone application from Matlab code to Raspberry PI 4B (target hardware is the Raspberry). My question is that can I save a figure (plot) with standalone application to Raspberry? (I can use fprintf command to save text files to Raspberry, but I don't know that it is possible to save figures like text file. I have a lot of data and I'd like to plot them already on the Raspberry.)
Thanks,
Roland
0 个评论
采纳的回答
Reeno Joseph
2020-11-12
Hello Nagy,
The "plot" function in MATLAB is not codegen capable and so you cannot use it directly for deployment.
A workaround you can try:
Hope this helps,
Reeno
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!