max between 2 timeseries signals
조회 수: 2 (최근 30일)
이전 댓글 표시
I have two signals generated by timeseries. I would like to compare them and get the signal result. I use the C=max(A,B) but I got errors
Error using timeseries/utStatCalculation (line 45) A specified property is missing a corresponding value.
Error in timeseries/max (line 25) out = utStatCalculation(this,'max',varargin{:});
Error in test_signal_C (line 17)
What function should I use to calculate the max?
댓글 수: 0
답변 (2개)
Ahmet Cecen
2016년 11월 14일
Maybe C=max(A.Data,B.Data)? You problem definition is a little vague, what exactly are you trying to find?
댓글 수: 1
Ahmet Cecen
2016년 11월 14일
Use comment instead of a new answer.
You can find the indices that correspond to the maximum values using:
[M,Index] = max()
Then access A.Time(Index) to find the time.
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!