MATLAB Answers

0

Extract info from .json file by matlab

Asked by Zeynab Mousavikhamene on 5 Aug 2019
Latest activity Answered by Navya Seelam on 8 Aug 2019
I need to parse a json file and extract many objects and arrays from that file. Then I am going to plot those extracted information.
I used jsondecode but it only created one big char. Shoud I use that?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Navya Seelam on 8 Aug 2019

Hi,
In order to plot the data use str2num to covert the string to numeric data type. If the data in JSON was array of numbers rather than strings then the output of jsondecode would have been array of double.
For more details on conversion of JSON datatypes to MATLAB data types refer this link

  0 Comments

Sign in to comment.