How to take first derivative and plot

조회 수: 4 (최근 30일)
Kanakaiah Jakkula
Kanakaiah Jakkula 2017년 11월 16일
답변: Bernhard Suhm 2017년 12월 15일
Hi,
I have the time series data as below:
1.23 3.45 0.17
1.45 5.67 0.25
1.34 4.67 0.28
1.46 5.76 0.30
2.23 5.76 0.34
2.41 5.98 0.44
2.44 6.32 0.45
2.47 6.66 0.52
2.56 6.51 0.57
2.67 7.04 0.62
2.78 7.43 0.65
3.69 7.87 0.68
4.65 7.56 0.68
5.43 8.78 0.69
5.45 8.77 0.72
5.47 9.56 0.78
Because data in three columns are in different scales, hence I want to normalize to bring them in to same scale(0~1), and then take first derivative (due the change is very small, the abosolute data graph may not be so clear to show the change), and then plot on the same graph.
please some one help, many thanks in advance,

답변 (1개)

Bernhard Suhm
Bernhard Suhm 2017년 12월 15일
You can use zscore to normalize, then diff to compute the differences, and then plot original and differences on the same plot (using "hold on" to plot both). Does this solve your problem?

태그

Community Treasure Hunt

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

Start Hunting!

Translated by