From jsonencode to CSV: how?

조회 수: 4 (최근 30일)
Henk-Jan Ramaker
Henk-Jan Ramaker 2020년 1월 23일
I have a structure that is converted with the function "jsonencode" to:
baseLines_jsonencoded =
'{"parameter":2,"r0_temperature":28,"r0_raw":[5286,5291,5270,5290,5291]}'
Next, I would like to convert this character array to a CSV formatted file. With respect to the CSV file, the following is required:
  • The three rows of the first column should contain "parameter",''"r0_temperature" and "r0_raw".
  • The three rows of the second column should contain the accompanying numbers.
Is there an easy way to convert the jsonencoded character array?

답변 (0개)

카테고리

Help CenterFile Exchange에서 JSON Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by