how can i find the slope for every six rows of my data
Ältere Kommentare anzeigen
I have data with 57.000 rows [Windspeed and time] and I want to calculate the rate of change or the slope of the windspeed for every six rows because 6 rows completes 1 hour. What fuction is possible to use for the rate of change or the slope? my final answer will be 57000/6=9500 rows or columns.
1 Kommentar
ANKUR KUMAR
am 8 Jan. 2018
Come up with some trail codes. We will help you.
Akzeptierte Antwort
Weitere Antworten (1)
John Harris
am 8 Jan. 2018
0 Stimmen
Your formula will depend on what kind of answer you want, but I think simple math operators will do most of the work for you.
Rate of change is (windspeed2-windspeed1)/(time2-time1) ... but if you apply this to every 6th entry, you're throwing away a lot of data. What if the wind is still at the top 'o the hour, but 10 knots in opposite directions every half hour?
Perhaps you want to calculate the rate for each measurement, then take an average for each 1-hour period?
1 Kommentar
Olger Papa
am 9 Jan. 2018
Kategorien
Mehr zu Descriptive Statistics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

