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?

 Akzeptierte Antwort

KSSV
KSSV am 1 Nov. 2022
Bearbeitet: KSSV am 1 Nov. 2022

1 Stimme

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

3 Kommentare

uzzi
uzzi am 1 Nov. 2022
Bearbeitet: uzzi am 1 Nov. 2022
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 am 1 Nov. 2022
data is array....you can put loop.
uzzi
uzzi am 1 Nov. 2022
That's the question!!! I don't know how to put loop.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 1 Nov. 2022

Kommentiert:

am 1 Nov. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by