How get values from ch
Mostrar comentarios más antiguos
Hello i got this ch in workspace and i want to get the values "price" from it for plot them, how can i put in a cell?
I got this.
[{"date": "1560160129", "tid": 90322567, "price": "7727.41", "type": 0, "amount": "0.00783400"}, {"date": "1560160115", "tid": 90322553, "price": "7725.96", "type": 0, "amount": "0.08018985"}]
Thank you
Regards
2 comentarios
Bob Thompson
el 10 de Jun. de 2019
Editada: Bob Thompson
el 10 de Jun. de 2019
If I am interpretting what you have posted correctly you have two cells, each which contain five strings, and you want to extract the numeric value following 'price'? How are you importing the data, does it need to be in strings?
With what you have now I would suggest using a combination of regexp, str2num, and possibly strfind.
EDIT** I just realized that all of the links were incorrect. They have been fixed.
Respuesta aceptada
Más respuestas (1)
JM_Cortes
el 10 de Jun. de 2019
0 votos
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!