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!