Raspberry Pi Support from MATLAB Coder [Image or figure save(PNG, JPGE)]

16 ビュー (過去 30 日間)
JEONGHYEON PARK
JEONGHYEON PARK 2022 年 11 月 8 日
編集済み: Yoga 2023 年 9 月 10 日
I want to convert a csv (acceleration) file to a figure and save it as an image (PNG).
If images can be saved using snapshots from the webcam, imwrite cannot be used. Is there any way?
Is this not possible on Raspberry Pi?

回答 (1 件)

Yoga
Yoga 2023 年 9 月 10 日
編集済み: Yoga 2023 年 9 月 10 日
I understand that you would like to convert a csv (acceleration) file to a figure and save it as an image (PNG).
To perform this, you can try the following steps:
  1. Use 'csvread' to read the CSV into MATLAB - https://www.mathworks.com/help/matlab/ref/csvread.html
  2. Create a figure and save it in your preferred format using 'saveas' - https://www.mathworks.com/help/matlab/ref/saveas.html
You can also refer to one of the MATLAB answer posts which explains how to perform the same - https://www.mathworks.com/matlabcentral/answers/510560-can-i-convert-csv-to-jpg-or-png.
I hope this helps resolve your issue.

カテゴリ

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

Translated by