Counting by 10 in a Text File

Hey I need some help creating a code that is able to read a string in a text file and pull every 10th,20th,30th,40th,and so on and so forth. So I am currently trying to use the size function but isn't quite working.Also, for example the text file I am using has data points under different labels such as A, B, C, or D with 200 hundred of each. So I want to get every 10th B in the text file. Any suggestions?

댓글 수: 2

Image Analyst
Image Analyst 2012년 2월 18일
Isn't this the same as http://www.mathworks.com/matlabcentral/answers/29464-counting-by-10 ????
Frandy
Frandy 2012년 2월 18일
Yes I just elaborated better

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2012년 2월 18일

편집:

2013년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by