Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how extract string colum in text file has different formats

조회 수: 1 (최근 30일)
huda nawaf
huda nawaf 2017년 12월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
*hi I have file has different formats columns,what I need is extracting string column. Textscan function need fixed number of elements in each row to work. in my case, there is column about country where this feature sometimes has two words such as United states and in other times has one word such as Canada. other problem,I can not assign specific format for one column because in one row has digit value and in other row has string because has no value so null is assigned as following example:
http://www.ssat.com.ar ssat.com.a 200.127.117.188 Argentina S.A. -34.7765
http://www.librosar.com.ar librosar.com.ar st United states st null
thanks in advance*

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by