Splitting a long string into individual variables
古いコメントを表示
Hello--
I've got a long string of websites that looks like this:
"https://stgeorge"
"https://stjoseph"
"https://stlouis"
I've got them all as a string in variable X. I'm trying to use them with the webread command which requires that they be individual, so I'm looking for a way to split them all into their own variables or otherwise produce a way which I can collect data from all of the sites.
Any help is much appreciated! thanks!
4 件のコメント
madhan ravi
2019 年 2 月 6 日
What‘s your expected result? State it explicitly to avoid confusions.
Walter Roberson
2019 年 2 月 6 日
Do you mean that you have aa nonscalar string object ? Or aa character vector with aa delimiter ?
KSSV
2019 年 2 月 6 日
IS your vaiable a cell? If so you can use X{1} ..etc.
Calvin Spangler Young
2019 年 2 月 6 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で JSON Format についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!