How to store words from a string in a cell array as a multiple strings

Hi, I have a 1x1 cell array containing a string of words:
{'Date,Hour,Latitude,Longitude,Windspeed,Pressure'}
How would you extract each of those words individually from the string and store them perhaps in a 1x6 cell array?

 Respuesta aceptada

Jonas
Jonas el 25 de Jun. de 2021
Editada: Jonas el 25 de Jun. de 2021
use the function strsplit() here with Delimiter ','
if your cell has name a, use
strsplit(a{1},',')

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 25 de Jun. de 2021

Editada:

el 25 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by