How can I device a time series A by a Time series B if they are the same size?

1 view (last 30 days)
Diego Dranuta
Diego Dranuta on 20 Sep 2019
Commented: thoughtGarden on 24 Sep 2019
I have 2 time series, they are both the same size but I don't know how to devide time series A by time series B.
Also, Once is A/B. How can I get the max value regardless of time?
Thanks

Answers (1)

thoughtGarden
thoughtGarden on 20 Sep 2019
Time series division is the same as general variable division
>> timeS1 = timeseries(linspace(1,2));
>> timeS2 = timeseries(linspace(1,5));
>> newSeries = timeS1/timeS2; %this works...
to find the max value, use the max() function
timeSeriesMax = max(newSeries);
  7 Comments
thoughtGarden
thoughtGarden on 24 Sep 2019
If you found this answer to be correct, please accept it. Otherwise, please add aditional comments so that it may be improved.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!