필터 지우기
필터 지우기

Info

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

Imported matrix size loop

조회 수: 2 (최근 30일)
Dylan Mecca
Dylan Mecca 2018년 2월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi all, I'm trying to find a way to make matlab measure the amount of rows of .csv that I import. The purpose being to later associate an interval directly correlated with the amount of data imported(by row).
In short for example:
if x amount of rows are imported, then x interval
in y amount of rows imported, then y interval
etc.
I've included my .m file and a sample data file.
Thank you!
P.S. I am using 2014a
  댓글 수: 4
Bob Thompson
Bob Thompson 2018년 2월 20일
If you've imported the data into an array, could you not just use size()? Perhaps I'm just making things too simple.
Dylan Mecca
Dylan Mecca 2018년 2월 20일
This ended up being exactly what I needed. Thank you!

답변 (1개)

Gil Kolin
Gil Kolin 2018년 2월 21일
I deleted my answer, so again (for the future): if you need to use just one line you can split it: aaa=strsplit(file_split,'\n'); size(aaa)
  댓글 수: 1
Dylan Mecca
Dylan Mecca 2018년 2월 21일
Thank you

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by