If i have a graph that levels off, how can i find the first x value this occurs at, on matlab?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a temperature VS time graph, and am looking for the first time(x) at which it levels off at a certain temp (y).
2 Kommentare
Antworten (2)
KL
am 15 Dez. 2017
It depends on how you've stored your data. Let's you have them in a matrix,
data = [(1:10)' zeros(10,1)];
data(5,2) = 10;
data =
1 0
2 0
3 0
4 0
5 10
6 0
7 0
8 0
9 0
10 0
Let's say column 1 is time and 2 is temperature. I want to find the time when tepmerature is 10,
t = data(data(:,2)==10,1)
t =
5
0 Kommentare
Image Analyst
am 15 Dez. 2017
Perhaps use findchangepts().
Or use movstd() or stdfilt() and find the last element where the standard deviation in a window falls below a certain level.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!