필터 지우기
필터 지우기

string extraction from txt file

조회 수: 2 (최근 30일)
Pas182
Pas182 2022년 5월 20일
댓글: Pas182 2022년 5월 20일
Hi Matlab community!
I have a txt file which cointains n #rows and i want to extract the strings for each row with a for Cycle.
Importing the txt i have a textdata string like:
so i'd like to extract, starting from row #2, the contents in column 2 for each row (in this case there's just 1 row i'm interested to).
Which is the best way to do it?
Many Many thanks to everyone!!

답변 (1개)

Prabakar kg
Prabakar kg 2022년 5월 20일
Please check readtable. This can help you read the data from txt and spreadsheet files as MATLAB table. Hope this helps!
  댓글 수: 1
Pas182
Pas182 2022년 5월 20일
it helps but i need to develop a "for" cycle in order to get the value in column 2 for each row. That is the hard part :(

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by