How to detect a data value change in matlab
    조회 수: 16 (최근 30일)
  
       이전 댓글 표시
    
looking for yur help one more time.
I have data that is constanly hanging, here I share one portion of it
I'm trying to create a variable/falg that helps me to identify when there is a change, somethinng like this:
DATA                                           variable/flag
0            -----> matlab code ----->          0
0                                                            0
0                                                            0
0.1224                                                   1
0.1219                                                   1
0.1199                                                   1
0.1199                                                   0
0.1199                                                   0
0.1175                                                   1
0.1175                                                   0
0.1175                                                   0
0.1175                                                   0                    
0.1300                                                   1
0.1300                                                   0
0.1200                                                   1
DATA values can change any time, keep same value for different periods of time, and either increase, decrease or change to positive or negative side.
I don't have much experience with mat lab so any feedback will be highly appreciated.
thanks
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

