Hello,
I want to create a loop such as for loop or while loop for every 6000 rows and plot each loop of the attached csv file. Can someone help me?

 채택된 답변

KSSV
KSSV 2022년 11월 1일
편집: KSSV 2022년 11월 1일

1 개 추천

T = readtable('https://in.mathworks.com/matlabcentral/answers/uploaded_files/1175788/newdata3.csv') ;
data = reshape(T.(2),6000,[]) ;
plot(data)

댓글 수: 3

uzzi
uzzi 2022년 11월 1일
편집: uzzi 2022년 11월 1일
Hello. It doesn't generate each figure for every 6000 rows interval. I want it like a loop such as for loop or while loop and plot each interval. And I have my x-axis as time. In your graph, time is not showing.
KSSV
KSSV 2022년 11월 1일
data is array....you can put loop.
uzzi
uzzi 2022년 11월 1일
That's the question!!! I don't know how to put loop.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품

질문:

2022년 11월 1일

댓글:

2022년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by