summation of two curves with different data points

조회 수: 6 (최근 30일)
Mos_bad
Mos_bad 2020년 3월 31일
답변: Cris LaPierre 2020년 3월 31일
I am having a hard time to plot the summation of the following curves as the numbers and values of data points of each curve (in blue and black) are different.

답변 (1개)

Cris LaPierre
Cris LaPierre 2020년 3월 31일
You are plotting against time. The easiest thing I can think of is putting the underlying data into a timetable and then using the retime function to obtain data points at the same time step in both data sets.
There in an intro to retiming and synchronization with timetables here.
If you are using Live Scripts, there is even an interactive task you could use. Read more about that here.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by