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

4 ビュー (過去 30 日間)
HWIK
HWIK 2021 年 6 月 25 日
編集済み: Jonas 2021 年 6 月 25 日
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?

採用された回答

Jonas
Jonas 2021 年 6 月 25 日
編集済み: Jonas 2021 年 6 月 25 日
use the function strsplit() here with Delimiter ','
if your cell has name a, use
strsplit(a{1},',')

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by