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?

 Réponse acceptée

Jonas
Jonas le 25 Juin 2021
Modifié(e) : Jonas le 25 Juin 2021
use the function strsplit() here with Delimiter ','
if your cell has name a, use
strsplit(a{1},',')

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange

Produits

Version

R2021a

Question posée :

le 25 Juin 2021

Modifié(e) :

le 25 Juin 2021

Community Treasure Hunt

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

Start Hunting!

Translated by