Can I convert .csv to .jpg or .png?
조회 수: 4 (최근 30일)
이전 댓글 표시
how to read .csv file with variable names into matlab?
댓글 수: 2
Adam
2020년 3월 12일
doc readtable
probably works for what you asked in the body of the question. I don't quite know what the question title has to do with anything though. .jpg and .png are image formats. I'm not sure how you would expect to convert an arbitrary .csv file to those formats.
답변 (1개)
Raunak Gupta
2020년 3월 17일
Hi,
If the end goal is to input the csv files directly into a CNN, a better approach would be to use imageDatastore as it can be directly used in trainNetwork function. For reading “.csv” files into imageDatastore you may define a custom ReadFcn which can use readtable for reading individual “.csv” files. From the table you can assign different channels according to the meaning of each property in physical nature. Since I found there are three properties in csv file but all of them have different number of columns which will not help while creating a 3-D Matrix.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!