Help calculating percent error at different times

I have two arrays that are 1 x 81. The arrays are named theoretical and analytic. The last column value for analytic is 5.50. The last column value for theoretical is 5.45. Currently, I have a step function that calculates the years from 0 to 20000 with 80 steps. How would I calculate the percent error between the analytical and theoretical values for different points in time, ie: years = 50, 250, 500, 750, 1000?

댓글 수: 2

darova
darova 2020년 1월 22일
What about interp1?
Hi,
Have you tried interp1? And to generate a function you can use polyfit given x and y values

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2020년 1월 22일

댓글:

2020년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by