Calculate percentage difference between two variables

5 次查看(过去 30 天)
I want to calculate percentage difference between measured and calculated variables along the time axis. Both measured and preducted variables are arrays of different size. I want to calculate the percentage error for the corresponding time.
  3 个评论
Muzammil Ali
Muzammil Ali 2019-8-6
编辑:Muzammil Ali 2019-8-6
Thank you for your answer. Yes, this is what I want but it will not work as size of the array predicted is different from size of array measured. And hence predicted(xx) is not at the same time as measured(xx).

请先登录,再进行评论。

采纳的回答

Luna
Luna 2019-8-6
编辑:Luna 2019-8-6
You should resample one array's elements according to other array's time.
Check the below function for this:
After resampling your 2 arrays will be the same size. You can substract.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by